Skip to content

Commit

Permalink
fix: ignore session_store defined in Decidim::Core::Engine
Browse files Browse the repository at this point in the history
  • Loading branch information
takahashim committed Oct 28, 2024
1 parent b0de512 commit 52a14e8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,15 @@ class Application < Rails::Application
# Application configuration can go into files in config/initializers
# -- all .rb files in that directory are automatically loaded after loading
# the framework and any gems in your application.

# skip `session_store` initializer in Decidim::Core::Engine
config.before_initialize do
Rails.application.initializers.each do |initializer|
if initializer.name == "Expire sessions"
initializer.instance_eval { @options[:group] = :force_skip }
Rails.logger.info "XXX: Skip initializer '#{initializer.name}'"
end
end
end
end
end

0 comments on commit 52a14e8

Please sign in to comment.