Skip to content

Commit

Permalink
Of course we needed the user set in the admin interface.
Browse files Browse the repository at this point in the history
  • Loading branch information
mlandauer committed Sep 11, 2024
1 parent 64277b4 commit 6d0179b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions app/controllers/admin/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class ApplicationController < Administrate::ApplicationController

include Administrate::Punditize
before_action :authenticate_admin
before_action :set_paper_trail_whodunnit

sig { void }
def authenticate_admin
Expand Down
2 changes: 0 additions & 2 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ class ApplicationController < ActionController::Base
# This stores the location on every request so that we can always redirect back after logging in
# See https://github.com/heartcombo/devise/wiki/How-To:-%5BRedirect-back-to-current-page-after-sign-in,-sign-out,-sign-up,-update%5D
before_action :store_user_location!, if: :storable_location?
# TODO: Not sure the "whodunnit" is working currently
before_action :set_paper_trail_whodunnit

default_form_builder FormBuilders::Tailwind

Expand Down

0 comments on commit 6d0179b

Please sign in to comment.