Skip to content

Commit

Permalink
add necessary middlewares for activeadmin
Browse files Browse the repository at this point in the history
  • Loading branch information
juan-apa committed Aug 14, 2024
1 parent d0e5fed commit 73bc949
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ class Application < Rails::Application

# reenable cookies and sessions for web interfaces (sidekiq web and admin portals)
config.middleware.use ActionDispatch::Cookies
config.middleware.use ActionDispatch::Flash
config.middleware.use ActionDispatch::Session::CookieStore
config.middleware.insert_after(Rack::Runtime, Rack::MethodOverride)
config.middleware.insert_after(ActionDispatch::Cookies, ActionDispatch::Session::CookieStore)

config.require_master_key = false
Expand Down

0 comments on commit 73bc949

Please sign in to comment.