Permalink
Browse files

disable session_secret for Sinatra::Application in development mode (…

…makes sessions usable out of the box with shotgun)
  • Loading branch information...
1 parent ea5f168 commit b50c7073d22387e639c23ea3b06c3843d22ca7dc @rkh rkh committed Apr 14, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/sinatra/base.rb
View
@@ -1464,6 +1464,7 @@ class Application < Base
set :logging, Proc.new { ! test? }
set :method_override, true
set :run, Proc.new { ! test? }
+ set :session_secret, Proc.new { super() unless development? }
def self.register(*extensions, &block) #:nodoc:
added_methods = extensions.map {|m| m.public_instance_methods }.flatten

0 comments on commit b50c707

Please sign in to comment.