Class: Ibrain::UserRegistrationsController
- Inherits:
-
Devise::RegistrationsController
- Object
- Devise::RegistrationsController
- Ibrain::UserRegistrationsController
- Defined in:
- lib/controllers/ibrain/user_registrations_controller.rb
Instance Method Summary collapse
-
#create ⇒ Object
POST /resource.
- #repo ⇒ Object
-
#sign_up_params ⇒ Object
The path used after sign up for inactive accounts.
Instance Method Details
#create ⇒ Object
POST /resource
13 14 15 16 17 18 19 20 |
# File 'lib/controllers/ibrain/user_registrations_controller.rb', line 13 def create build_resource(sign_up_params) user = repo.register(params) sign_in(resource_name, user) if user.present? super end |
#repo ⇒ Object
72 73 74 |
# File 'lib/controllers/ibrain/user_registrations_controller.rb', line 72 def repo AuthRepository.new(resource) end |
#sign_up_params ⇒ Object
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 sign_up_params params.require(:auth).permit(Ibrain.user_class.permitted_attributes) end |