diff options
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/session_management.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/session_management.rb b/actionpack/lib/action_controller/session_management.rb index bf402c93e1..5b39118001 100644 --- a/actionpack/lib/action_controller/session_management.rb +++ b/actionpack/lib/action_controller/session_management.rb @@ -81,6 +81,9 @@ module ActionController #:nodoc: write_inheritable_array("session_options", [options]) end + # So we can declare session options in the Rails initializer. + alias_method :session=, :session + def cached_session_options #:nodoc: @session_options ||= read_inheritable_attribute("session_options") || [] end |