diff options
author | Kir Shatrov <shatrov@me.com> | 2017-07-24 23:20:53 +0300 |
---|---|---|
committer | Kir Shatrov <shatrov@me.com> | 2017-07-29 14:02:40 +0300 |
commit | dfcc766163fa58389a6fe6dc5788533a455f8a89 (patch) | |
tree | c167e5e4ba9691dcbb543f2e07d716fcf11bfa4d /actionpack/lib/action_dispatch/middleware/session | |
parent | 904f1a8747958129124d86b44e36c5f0263e0125 (diff) | |
download | rails-dfcc766163fa58389a6fe6dc5788533a455f8a89.tar.gz rails-dfcc766163fa58389a6fe6dc5788533a455f8a89.tar.bz2 rails-dfcc766163fa58389a6fe6dc5788533a455f8a89.zip |
Use frozen string literal in actionpack/
Diffstat (limited to 'actionpack/lib/action_dispatch/middleware/session')
4 files changed, 8 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/session/abstract_store.rb b/actionpack/lib/action_dispatch/middleware/session/abstract_store.rb index 31979fa576..e054fefc9b 100644 --- a/actionpack/lib/action_dispatch/middleware/session/abstract_store.rb +++ b/actionpack/lib/action_dispatch/middleware/session/abstract_store.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "rack/utils" require "rack/request" require "rack/session/abstract/id" diff --git a/actionpack/lib/action_dispatch/middleware/session/cache_store.rb b/actionpack/lib/action_dispatch/middleware/session/cache_store.rb index 4babeb6354..c84bc8bfad 100644 --- a/actionpack/lib/action_dispatch/middleware/session/cache_store.rb +++ b/actionpack/lib/action_dispatch/middleware/session/cache_store.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative "abstract_store" module ActionDispatch diff --git a/actionpack/lib/action_dispatch/middleware/session/cookie_store.rb b/actionpack/lib/action_dispatch/middleware/session/cookie_store.rb index 496f221617..65e93984e3 100644 --- a/actionpack/lib/action_dispatch/middleware/session/cookie_store.rb +++ b/actionpack/lib/action_dispatch/middleware/session/cookie_store.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "active_support/core_ext/hash/keys" require_relative "abstract_store" require "rack/session/cookie" diff --git a/actionpack/lib/action_dispatch/middleware/session/mem_cache_store.rb b/actionpack/lib/action_dispatch/middleware/session/mem_cache_store.rb index bc2b1c9b12..f0aec39c9c 100644 --- a/actionpack/lib/action_dispatch/middleware/session/mem_cache_store.rb +++ b/actionpack/lib/action_dispatch/middleware/session/mem_cache_store.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative "abstract_store" begin require "rack/session/dalli" |