Allow engine assets to be precompiled when `config.assets.initialize_on_precompile` is set to false.

This commit is contained in:
Mario Visic 2012-04-02 15:31:48 +08:00
parent f0e41205fd
commit 370ec26d65
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ module Locomotive
::ActionController::Base.wrap_parameters :format => [:json]
end
initializer "Locomotive precompile hook" do |app|
initializer "Locomotive precompile hook", :group => :all do |app|
app.config.assets.precompile += %w(locomotive.js locomotive.css locomotive/inline_editor.js locomotive/inline_editor.css
locomotive/not_logged_in.js locomotive/not_logged_in.css
locomotive/aloha.js)