Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ViditChitkara committed Jun 17, 2018
1 parent ade53b8 commit 09049dd
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,10 @@ def emoji_names_list
emojis = []
image_map = {}
Emoji.all.each do |e|
if e.raw
val = ":#{e.name}:"
emojis<<{ value: val, text: e.name }
image_map[e.name] = e.raw
end
next unless e.raw
val = ":#{e.name}:"
emojis<<{ value: val, text: e.name }
image_map[e.name] = e.raw
end
{ emojis: emojis, image_map: image_map }
end
Expand Down

0 comments on commit 09049dd

Please sign in to comment.