Skip to content

Commit

Permalink
Fixing more issues with getting sprockets to register commonjs for bo…
Browse files Browse the repository at this point in the history
…th dev mode and rake assets:precompile
  • Loading branch information
andrewdeandrade committed Jun 14, 2012
1 parent 9df2105 commit 39f9e08
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, :group => :assets do |app|
initializer :setup_commonjs, :after => "sprockets.environment", :group => :all do |app|
app.assets.register_postprocessor 'application/javascript', CommonJS
end
end
Expand Down

0 comments on commit 39f9e08

Please sign in to comment.