frontend/app/controllers/users/registrations_controller.rb in meroku-2.0.8 vs frontend/app/controllers/users/registrations_controller.rb in meroku-2.0.9

- old
+ new

@@ -11,34 +11,19 @@ # super # end # POST /resource def create - #super build_resource(sign_up_params) resource.save yield resource if block_given? if resource.persisted? - #render jsonapi: resource render jsonapi: resource - #if resource.active_for_authentication? - # set_flash_message! :notice, :signed_up - # 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}" - # expire_data_after_sign_in! - # respond_with resource, location: after_inactive_sign_up_path_for(resource) - #end else clean_up_passwords resource set_minimum_password_length - ##respond_with resource - #warden.custom_failure! - #render :json=> resource.errors, :status=>422 render jsonapi_errors: resource.errors - #render json: {status: 'SUCCESS', message: resource.errors.full_messages}, status: 422 end end # GET /resource/edit # def edit