Project

General

Profile

« Previous | Next » 

Revision 540b67d5

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.

(cherry picked from commit 72f46ae90c63d1b1b32a25a3b69276418400dbab)

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