diff options
author | Akira Matsuda <ronnie@dio.jp> | 2013-01-28 16:59:50 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2013-01-28 17:06:02 +0900 |
commit | 5f30b547c8acbf9086329e9c93a3c77768bfb1ea (patch) | |
tree | 2ddb70a4422d568ad6520176187040a34390cf28 /actionpack/lib/action_dispatch/middleware | |
parent | 59deaecc76be1b9dcdc3c4865375287560add1d1 (diff) | |
download | rails-5f30b547c8acbf9086329e9c93a3c77768bfb1ea.tar.gz rails-5f30b547c8acbf9086329e9c93a3c77768bfb1ea.tar.bz2 rails-5f30b547c8acbf9086329e9c93a3c77768bfb1ea.zip |
Use Encoding::UTF_8 constant :do_not_litter:
Diffstat (limited to 'actionpack/lib/action_dispatch/middleware')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/session/abstract_store.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/session/abstract_store.rb b/actionpack/lib/action_dispatch/middleware/session/abstract_store.rb index 7c12590c49..84df55fd5a 100644 --- a/actionpack/lib/action_dispatch/middleware/session/abstract_store.rb +++ b/actionpack/lib/action_dispatch/middleware/session/abstract_store.rb @@ -26,7 +26,7 @@ module ActionDispatch def generate_sid sid = SecureRandom.hex(16) - sid.encode!('UTF-8') + sid.encode!(Encoding::UTF_8) sid end |