aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/middleware/notifications.rb
diff options
context:
space:
mode:
authorPrem Sichanugrist <s@sikachu.com>2010-01-21 04:37:10 +0700
committerJosé Valim <jose.valim@gmail.com>2010-01-21 10:08:26 +0100
commitbd4f21fbac495fb28b6be993be808509e567239e (patch)
treefacad12a926cd08f40ebf97da6d336cb8e03e6d9 /actionpack/lib/action_dispatch/middleware/notifications.rb
parentfa9f000246c2f6010f18bf40237d105b782873e2 (diff)
downloadrails-bd4f21fbac495fb28b6be993be808509e567239e.tar.gz
rails-bd4f21fbac495fb28b6be993be808509e567239e.tar.bz2
rails-bd4f21fbac495fb28b6be993be808509e567239e.zip
Move filter_parameter_logging logic out of the controller and create ActionDispatch::ParametersFilter to handle parameter filteration instead. This will make filteration not depending on controller anymore.
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'actionpack/lib/action_dispatch/middleware/notifications.rb')
-rw-r--r--actionpack/lib/action_dispatch/middleware/notifications.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/notifications.rb b/actionpack/lib/action_dispatch/middleware/notifications.rb
index ce3732b740..65409f57fd 100644
--- a/actionpack/lib/action_dispatch/middleware/notifications.rb
+++ b/actionpack/lib/action_dispatch/middleware/notifications.rb
@@ -10,7 +10,7 @@ module ActionDispatch
def call(env)
request = Request.new(env)
- payload = retrieve_payload_from_env(request.filter_env)
+ payload = retrieve_payload_from_env(request.filtered_env)
ActiveSupport::Notifications.instrument("action_dispatch.before_dispatch", payload)