Permalink
Browse files

Only set ActionView configuration inside the on_load block

  • Loading branch information...
1 parent cdc1885 commit 60585d2ef2f7a29d54e25e75a1182ea820b9ecd3 @rafaelfranca rafaelfranca committed Feb 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_view/railtie.rb
View
2 actionpack/lib/action_view/railtie.rb
@@ -33,8 +33,8 @@ class Railtie < Rails::Railtie
end
initializer "action_view.set_configs" do |app|
- ActionView::Base.default_method_for_update = app.config.default_method_for_update
ActiveSupport.on_load(:action_view) do
+ self.default_method_for_update = app.config.default_method_for_update
app.config.action_view.each do |k,v|
send "#{k}=", v
end

0 comments on commit 60585d2

Please sign in to comment.