whenauser 0.6.2 → 0.6.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module WhenAUser
2
- VERSION = '0.6.2'
2
+ VERSION = '0.6.3'
3
3
  end
data/lib/whenauser.rb CHANGED
@@ -62,9 +62,9 @@ module WhenAUser
62
62
  event[:request_method] = env['whenauser.request_method']
63
63
  event[:user_agent] = env['whenauser.user_agent']
64
64
  event[:referer_url] = env['whenauser.referer_url'] if env['whenauser.referer_url']
65
+ request = ActionDispatch::Request.new(env)
66
+ event[:params] = request.params.except(*WhenAUser.filter_parameters)
65
67
  end
66
- request = ActionDispatch::Request.new(env)
67
- event[:params] = request.params.except(*WhenAUser.filter_parameters)
68
68
  event.merge!(WhenAUser.custom_data.call(env))
69
69
  event
70
70
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: whenauser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: