Sha256: 8ef38cea75a03fb132a520a44ed27dc8d88f7eb1ec2a918ba18ecfbb08086b6f
Contents?: true
Size: 678 Bytes
Versions: 5
Compression:
Stored size: 678 Bytes
Contents
module MultiSessionStore class Railtie < Rails::Railtie config.multi_session_store = ActiveSupport::OrderedOptions.new initializer 'multi_session_store.add_middleware' do |app| app.config.middleware.insert_before ActionDispatch::Session::MultiSessionStore, MultiSessionStore::SubsessionGeneratorMiddleware, exclude_paths: app.config.multi_session_store.exclude_paths end config.to_prepare do ApplicationController.prepend MultiSessionStore::DefaultUrlOptions unless ApplicationController.ancestors.include? MultiSessionStore::DefaultUrlOptions end end end
Version data entries
5 entries across 5 versions & 1 rubygems