Skip to content

Commit

Permalink
Merge pull request #5 from malandrew/master
Browse files Browse the repository at this point in the history
Add group parameter to rails initializer to run on asset precompilation
  • Loading branch information
maccman committed Jun 7, 2012
2 parents 859b9fe + 9df2105 commit 02f0c93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sprockets/engine.rb
@@ -1,7 +1,7 @@
if defined?(Rails)
module Sprockets
class CommonJSEngine < Rails::Engine
initializer :setup_commonjs do |app|
initializer :setup_commonjs, :group => :assets do |app|
app.assets.register_postprocessor 'application/javascript', CommonJS
end
end
Expand Down

0 comments on commit 02f0c93

Please sign in to comment.