Sha256: a313921383a4f1f1f7c6d5906313aa1c8574b2e78006544fc4f4abf0cc996327
Contents?: true
Size: 1002 Bytes
Versions: 1
Compression:
Stored size: 1002 Bytes
Contents
module Gemgento class User::RegistrationsController < Devise::RegistrationsController # POST /resource def create build_resource(sign_up_params) resource.stores << current_store unless resource.stores.include? current_store resource.user_group = UserGroup.find_by(code: 'General') resource.sync_needed = true if resource.save yield resource if block_given? if resource.active_for_authentication? set_flash_message :notice, :signed_up if is_flashing_format? sign_up(resource_name, resource) respond_with resource, location: after_sign_up_path_for(resource) else set_flash_message :notice, :"signed_up_but_#{resource.inactive_message}" if is_flashing_format? expire_data_after_sign_in! respond_with resource, location: after_inactive_sign_up_path_for(resource) end else clean_up_passwords resource respond_with resource end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gemgento-2.8.0 | app/controllers/gemgento/user/registrations_controller.rb |