Permalink
Browse files

Merge pull request #88 from dmathieu/fix_railtie

Fix the railtie related to unpermitted parameters.
  • Loading branch information...
2 parents ae3826f + c4e25f3 commit 44cf253ca198a6a102c6bfd73a2e60f0f1a24b77 @carlosantoniodasilva carlosantoniodasilva committed Jan 23, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/strong_parameters/railtie.rb
@@ -8,8 +8,8 @@ class Railtie < ::Rails::Railtie
config.generators.scaffold_controller = :strong_parameters_controller
end
- initializer "strong_parameters.config", :before => "active_controller.set_configs" do |app|
- ActionController::Parameters.action_on_unpermitted_parameters = options.delete(:action_on_unpermitted_parameters) do
+ initializer "strong_parameters.config", :before => "action_controller.set_configs" do |app|
+ ActionController::Parameters.action_on_unpermitted_parameters = app.config.action_controller.delete(:action_on_unpermitted_parameters) do
(Rails.env.test? || Rails.env.development?) ? :log : false
end
end

0 comments on commit 44cf253

Please sign in to comment.