File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ def configure_permitted_parameters
1919 end
2020
2121 def authenticate_admin!
22+ response . headers [ 'Cache-Control' ] = 'no-store'
2223 redirect_to root_path unless current_user &.admin
2324 end
2425
Original file line number Diff line number Diff line change 9898 # will call the method to return the path.
9999 #
100100 # Default:
101+ config . base_controller = 'ApplicationController'
101102 config . logout_link_path = :destroy_user_session_path
102103 config . logout_link_method = :delete
103104 config . authentication_method = :authenticate_admin!
149150 # Active Admin resources and pages from here.
150151 #
151152 # config.before_action :do_something_awesome
153+ config . before_action { response . headers [ 'Cache-Control' ] = 'no-store' }
152154
153155 # == Localize Date/Time Format
154156 #
You can’t perform that action at this time.
0 commit comments