ID25 / rails_emoji_picker

Add emoji to your app :smiley_cat:
143 stars 41 forks source link

Impossible to use a CDN in production and hard-coding of environment names on helpers #29

Open cserradag96 opened 5 years ago

cserradag96 commented 5 years ago

The gem fails when the environment is different from production or development, for example staging. In production environment this gem looks for the images in the default folder in a forced way (assets/images/emoji), it is impossible to use a CDN.

The problem is found in the 'insert_image_to_image_tag' function, from the file: https://github.com/ID25/rails_emoji_picker/blob/master/lib/helper/emoji_helper.rb

I have solved these problems here: https://github.com/uriji/uriji-icons-rails