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

Version Path
xing_backend_token_auth-0.1.32 test/dummy/app/controllers/overrides/registrations_controller.rb
xing_backend_token_auth-0.1.31 test/dummy/app/controllers/overrides/registrations_controller.rb
devise_token_auth-0.1.30.beta3 test/dummy/app/controllers/overrides/registrations_controller.rb
devise_token_auth-0.1.30.beta2 test/dummy/app/controllers/overrides/registrations_controller.rb
devise_token_auth-0.1.30.beta1 test/dummy/app/controllers/overrides/registrations_controller.rb
devise_token_auth-0.1.29 test/dummy/app/controllers/overrides/registrations_controller.rb
devise_token_auth-0.1.29.beta7 test/dummy/app/controllers/overrides/registrations_controller.rb
devise_token_auth-0.1.29.beta6 test/dummy/app/controllers/overrides/registrations_controller.rb
devise_token_auth-0.1.29.beta5 test/dummy/app/controllers/overrides/registrations_controller.rb
devise_token_auth-0.1.29.beta4 test/dummy/app/controllers/overrides/registrations_controller.rb
devise_token_auth-0.1.29.beta3 test/dummy/app/controllers/overrides/registrations_controller.rb
devise_token_auth-0.1.29.beta2 test/dummy/app/controllers/overrides/registrations_controller.rb
devise_token_auth-0.1.29.beta1 test/dummy/app/controllers/overrides/registrations_controller.rb