|
|
|
@ -10,7 +10,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_instance_presenter, only: [:new, :create, :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] |
|
|
|
@ -107,10 +106,6 @@ class Auth::RegistrationsController < Devise::RegistrationsController |
|
|
|
|
|
|
|
|
|
private |
|
|
|
|
|
|
|
|
|
def set_instance_presenter |
|
|
|
|
@instance_presenter = InstancePresenter.new |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
def set_body_classes |
|
|
|
|
@body_classes = %w(edit update).include?(action_name) ? 'admin' : 'lighter' |
|
|
|
|
end |
|
|
|
|