Skip to content

Commit

Permalink
This should not happen in an initializer. An initializer is just exec…
Browse files Browse the repository at this point in the history
…uted after config/application.rb is read. This means this would override whatever default set by the user. This commit fix it.
  • Loading branch information
josevalim committed Jun 29, 2011
1 parent d9b1790 commit 59e4f75
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/coffee/rails/railtie.rb
@@ -1,7 +1,5 @@
module Coffee::Rails
class Railtie < ::Rails::Railtie
initializer :setup_coffee do
config.app_generators.javascript_engine 'coffee'
end
config.app_generators.javascript_engine :coffee
end
end

0 comments on commit 59e4f75

Please sign in to comment.