Class: Ibrain::UserRegistrationsController

Inherits:
Devise::RegistrationsController
  • Object
show all
Defined in:
lib/controllers/ibrain/user_registrations_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject

POST /resource



13
14
15
16
17
18
19
20
# File 'lib/controllers/ibrain/user_registrations_controller.rb', line 13

def create
  build_resource()

  user = repo.register(params)
  (resource_name, user) if user.present?

  super
end

#repoObject



72
73
74
# File 'lib/controllers/ibrain/user_registrations_controller.rb', line 72

def repo
  AuthRepository.new(resource)
end

#sign_up_paramsObject

The path used after sign up for inactive accounts. def after_inactive_sign_up_path_for(resource)

super(resource)

end



68
69
70
# File 'lib/controllers/ibrain/user_registrations_controller.rb', line 68

def 
  params.require(:auth).permit(Ibrain.user_class.permitted_attributes)
end