Adam McCrea
2009-Feb-06 15:23 UTC
Patch Review Request: #1750 session_store initializer causes rake:gems tasks to break
I added a patch for this ticket, but I really have no idea how to unit test it. http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/1750-session_store-initializer-causes-rakegems-tasks-to-break If I have a gem configured in environment.rb but do *not* have it installed, rake:gems will not run successfully. Here is the output I see: rake aborted! A session_key is required to write a cookie containing the session data. Use config.action_controller.session = { :session_key => "_myapp_session", :secret => "some secret phrase" } in config/environment.rb My patch allows initializers to be run within gems rake tasks, which fixes the issue for me. - Adam --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---