Andrew Kaspick wrote:
Quote:
Hello,
I have my base session settings in config/initializers/session_store.rb
I want to override the :key option in one of my environment files. I'm
attempting to do so like this...
config.action_controller.session[:key] = '_new_sesssion_key'
But when I examine the cookies for the site, it's using the :key set in
the config/initializers/session_store.rb still.
Any idea how I go about overriding the :key in my environment files?
Thanks,
Andrew |
I'm just moving the settings in config/initializers/session_store.rb to
environment.rb and overriding in my other environment file for the time
being which seems to work.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk (AT) googlegroups (DOT) com
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe (AT) googlegroups (DOT) com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---