0
0
Fork 0

Set "admin" body class from admin nested layout (#31269)

This commit is contained in:
Matt Jankowski 2024-09-06 09:58:46 -04:00 committed by GitHub
parent fd7fc7bdc3
commit a9d0b48b65
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 13 additions and 56 deletions

View file

@ -11,7 +11,6 @@ class Auth::RegistrationsController < Devise::RegistrationsController
before_action :configure_sign_up_params, only: [:create]
before_action :set_sessions, only: [:edit, :update]
before_action :set_strikes, only: [:edit, :update]
before_action :set_body_classes, only: [:new, :create, :edit, :update]
before_action :require_not_suspended!, only: [:update]
before_action :set_cache_headers, only: [:edit, :update]
before_action :set_rules, only: :new
@ -104,10 +103,6 @@ class Auth::RegistrationsController < Devise::RegistrationsController
private
def set_body_classes
@body_classes = 'admin' if %w(edit update).include?(action_name)
end
def set_invite
@invite = begin
invite = Invite.find_by(code: invite_code) if invite_code.present?