Sha256: d681f197299d551c6116deaadcfe64adb1b1303115573e00188f6213c163cf3d

Contents?: true

Size: 387 Bytes

Versions: 8

Compression:

Stored size: 387 Bytes

Contents

class Custom::TokenValidationsController < DeviseTokenAuth::TokenValidationsController

  def validate_token
    super do |resource|
      @validate_token_block_called = true unless resource.nil?
    end
  end

  def validate_token_block_called?
    @validate_token_block_called == true
  end

  protected

  def render_validate_token_success
    render json: {custom: "foo"}
  end

end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
devise_token_auth-0.1.43 test/dummy/app/controllers/custom/token_validations_controller.rb
digix_devise_token_auth-0.1.44 test/dummy/app/controllers/custom/token_validations_controller.rb
devise_token_auth-0.1.43.beta1 test/dummy/app/controllers/custom/token_validations_controller.rb
devise_token_auth-0.1.42 test/dummy/app/controllers/custom/token_validations_controller.rb
devise_token_auth-0.1.41 test/dummy/app/controllers/custom/token_validations_controller.rb
devise_token_auth-0.1.40 test/dummy/app/controllers/custom/token_validations_controller.rb
devise_token_auth-0.1.39 test/dummy/app/controllers/custom/token_validations_controller.rb
devise_token_auth-0.1.38 test/dummy/app/controllers/custom/token_validations_controller.rb