Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…makes sessions usable out of the box with shotgun)
  • Loading branch information...
commit b50c7073d22387e639c23ea3b06c3843d22ca7dc 1 parent ea5f168
@rkh rkh authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/sinatra/base.rb
View
1  lib/sinatra/base.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.