Sha256: f36fbccd9a043b041a0b67fc5b32d80a32875271ac1c1b76183699186952288a
Contents?: true
Size: 1.07 KB
Versions: 3
Compression:
Stored size: 1.07 KB
Contents
require "action_dispatch/session/stored_session_store" require "active_support" require "action_dispatch" require "action_controller" require "active_record" module StoredSession class Engine < ::Rails::Engine isolate_namespace StoredSession config.stored_session = ActiveSupport::OrderedOptions.new initializer "stored_session.deprecator", before: :load_environment_config do |app| app.deprecators[:stored_session] = StoredSession.deprecator end initializer "stored_session.config" do |app| StoredSession.config = StoredSession::Configuration.new(app.config.stored_session) end initializer "stored_session.logger" do ActiveSupport.on_load(:stored_session) { self.logger ||= ::Rails.logger } StoredSession::LogSubscriber.attach_to :stored_session end config.after_initialize do |app| unless app.config.eager_load StoredSession.config.base_controller_class StoredSession.config.base_job_class StoredSession.config.base_record_class end StoredSession.config.validate! end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
stored_session-0.4.0 | lib/stored_session/engine.rb |
stored_session-0.3.0 | lib/stored_session/engine.rb |
stored_session-0.2.0 | lib/stored_session/engine.rb |