|
|
|
@ -6,6 +6,7 @@ class Auth::RegistrationsController < Devise::RegistrationsController |
|
|
|
|
before_action :check_enabled_registrations, only: [:new, :create] |
|
|
|
|
before_action :configure_sign_up_params, only: [:create] |
|
|
|
|
before_action :set_sessions, only: [:edit, :update] |
|
|
|
|
before_action :set_instance_presenter, only: [:new, :update] |
|
|
|
|
|
|
|
|
|
def destroy |
|
|
|
|
not_found |
|
|
|
@ -39,6 +40,10 @@ class Auth::RegistrationsController < Devise::RegistrationsController |
|
|
|
|
|
|
|
|
|
private |
|
|
|
|
|
|
|
|
|
def set_instance_presenter |
|
|
|
|
@instance_presenter = InstancePresenter.new |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
def determine_layout |
|
|
|
|
%w(edit update).include?(action_name) ? 'admin' : 'auth' |
|
|
|
|
end |
|
|
|
|