diff options
author | Vipul A M <vipulnsward@gmail.com> | 2014-12-24 18:45:55 +0530 |
---|---|---|
committer | Vipul A M <vipulnsward@gmail.com> | 2014-12-24 18:45:55 +0530 |
commit | 7b2728cac1bebed0cf6f1a4122859790b18abc9f (patch) | |
tree | 48082952ad29d09a025a970b36394b824346f642 /actionpack/lib/action_dispatch | |
parent | 5a2d85be4dc69b7570dd5eb1daba522cb2376f1f (diff) | |
download | rails-7b2728cac1bebed0cf6f1a4122859790b18abc9f.tar.gz rails-7b2728cac1bebed0cf6f1a4122859790b18abc9f.tar.bz2 rails-7b2728cac1bebed0cf6f1a4122859790b18abc9f.zip |
- Removed unused parameter to cookie serialize method and fixed usage of the same elsewhere
Diffstat (limited to 'actionpack/lib/action_dispatch')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/cookies.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/cookies.rb b/actionpack/lib/action_dispatch/middleware/cookies.rb index 93d1d33f78..8d3ce24612 100644 --- a/actionpack/lib/action_dispatch/middleware/cookies.rb +++ b/actionpack/lib/action_dispatch/middleware/cookies.rb @@ -410,7 +410,7 @@ module ActionDispatch @options[:serializer] == :hybrid && value.start_with?(MARSHAL_SIGNATURE) end - def serialize(name, value) + def serialize(value) serializer.dump(value) end @@ -463,9 +463,9 @@ module ActionDispatch def []=(name, options) if options.is_a?(Hash) options.symbolize_keys! - options[:value] = @verifier.generate(serialize(name, options[:value])) + options[:value] = @verifier.generate(serialize(options[:value])) else - options = { :value => @verifier.generate(serialize(name, options)) } + options = { :value => @verifier.generate(serialize(options)) } end raise CookieOverflow if options[:value].bytesize > MAX_COOKIE_SIZE @@ -524,7 +524,7 @@ module ActionDispatch options = { :value => options } end - options[:value] = @encryptor.encrypt_and_sign(serialize(name, options[:value])) + options[:value] = @encryptor.encrypt_and_sign(serialize(options[:value])) raise CookieOverflow if options[:value].bytesize > MAX_COOKIE_SIZE @parent_jar[name] = options |