Skip to content

Commit 68ba8cd

Browse files
committed
Make sure assets are precompiled on Heroku
Heroku recommends that `config.assets.initialize_on_precompile = false`, which means that this initializer will not be invoked by `rake assets:precompile`, which forces developers deploying to Heroku to duplicate this initializer in their apps' configs.
1 parent ed3bf0e commit 68ba8cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/active_admin/editor/engine.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class Engine < ::Rails::Engine
77
def editor; ActiveAdmin::Editor.configuration end
88
end
99

10-
initializer 'active_admin.editor' do |app|
10+
initializer 'active_admin.editor', :group => :all do |app|
1111
app.config.assets.precompile += [
1212
'active_admin/editor.js',
1313
'active_admin/editor.css'

0 commit comments

Comments
 (0)