Class: Lcms::Engine::RegistrationsController
- Inherits:
-
Devise::RegistrationsController
- Object
- Devise::RegistrationsController
- Lcms::Engine::RegistrationsController
- Defined in:
- app/controllers/lcms/engine/registrations_controller.rb
Instance Method Summary collapse
-
#create {|resource| ... } ⇒ Object
NOTE: remove with reverting confiramble on, need this not to sign in user after sign up.
Instance Method Details
#create {|resource| ... } ⇒ Object
NOTE: remove with reverting confiramble on, need this not to sign in user after sign up
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'app/controllers/lcms/engine/registrations_controller.rb', line 7 def create build_resource(sign_up_params) resource.save yield resource if block_given? if resource.persisted? :notice, :signed_up expire_data_after_sign_in! respond_with resource, location: after_inactive_sign_up_path_for(resource) else clean_up_passwords resource set_minimum_password_length respond_with resource end end |