Sha256: 557abac166a8a542d9a1b463b5c2fb1f500a61b1909971b0b0bf1f541cb97bf4
Contents?: true
Size: 643 Bytes
Versions: 13
Compression:
Stored size: 643 Bytes
Contents
module Overrides class RegistrationsController < DeviseTokenAuth::RegistrationsController OVERRIDE_PROOF = "(^^,)" def update if @user if @user.update_attributes(account_update_params) render json: { status: 'success', data: @user.as_json, override_proof: OVERRIDE_PROOF } else render json: { status: 'error', errors: @user.errors }, status: 403 end else render json: { status: 'error', errors: ["User not found."] }, status: 404 end end end end
Version data entries
13 entries across 13 versions & 2 rubygems