Skip to content

Commit

Permalink
Merge pull request #6 from malandrew/master
Browse files Browse the repository at this point in the history
Improved fixes for issues with wrapping modules in dev mode and with asset precompiling
  • Loading branch information
maccman committed Jun 16, 2012
2 parents 02f0c93 + 39f9e08 commit 8aa76e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sprockets/engine.rb
Original file line number Diff line number Diff line change
@@ -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 8aa76e1

Please sign in to comment.