Skip to content

Commit 77839b1

Browse files
Emoji fix
1 parent e68a7af commit 77839b1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/forem/engine.rb

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
require 'emoji'
2+
13
module ::Forem
24
class Engine < Rails::Engine
35
isolate_namespace Forem
@@ -13,17 +15,19 @@ def root
1315
Decorators.register! Engine.root, Rails.root
1416
end
1517

18+
config.assets.paths << Emoji.images_path
19+
1620
# Precompile any assets included straight in certain pges
1721
initializer "forem.assets.precompile", :group => :all do |app|
1822
app.config.assets.precompile += %w[
1923
forem/admin/members.js
2024
]
25+
app.config.assets.precompile << "emoji/**/*.png"
2126
end
2227
end
2328
end
2429

2530
require 'simple_form'
26-
require 'emoji'
2731
require 'select2-rails'
2832

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

0 commit comments

Comments
 (0)