Skip to content

Commit

Permalink
Emoji fix
Browse files Browse the repository at this point in the history
  • Loading branch information
louiecaulfield committed Nov 1, 2014
1 parent e68a7af commit 77839b1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/forem/engine.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
require 'emoji'

module ::Forem
class Engine < Rails::Engine
isolate_namespace Forem
Expand All @@ -13,17 +15,19 @@ def root
Decorators.register! Engine.root, Rails.root
end

config.assets.paths << Emoji.images_path

# Precompile any assets included straight in certain pges
initializer "forem.assets.precompile", :group => :all do |app|
app.config.assets.precompile += %w[
forem/admin/members.js
]
app.config.assets.precompile << "emoji/**/*.png"
end
end
end

require 'simple_form'
require 'emoji'
require 'select2-rails'

# We need one of the two pagination engines loaded by this point.
Expand Down

0 comments on commit 77839b1

Please sign in to comment.