Project

General

Profile

« Previous | Next » 

Revision 72f46ae9

Added by Dominic Cleal about 8 years ago

fixes #14338 - move session store configuration earlier

When a plugin has an initializer relying on :build_middleware_stack, the
middleware stack is constructed with the default session store (cookies)
as the store hasn't been configured by config/initializers/ yet. Moving
the config into the main app config ensures it's set before the
middleware stack is first loaded.

View differences:

config/application.rb
child.helper helpers
end
end
# Use the database for sessions instead of the cookie-based default
config.session_store :active_record_store, :secure => !!SETTINGS[:require_ssl]
end
def self.setup_console

Also available in: Unified diff