Sha256: be4cf91462bf6290b8be6423d0f84952a15ce00c0f3a6dede1dbc1705505e70c

Contents?: true

Size: 277 Bytes

Versions: 3

Compression:

Stored size: 277 Bytes

Contents

class Custom::TokenValidationsController < DeviseTokenAuth::TokenValidationsController

  def validate_token
    super do |resource|
      @validate_token_block_called = true
    end
  end

  def validate_token_block_called?
    @validate_token_block_called == true
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
devise_token_auth-0.1.34 test/dummy/app/controllers/custom/token_validations_controller.rb
devise_token_auth-0.1.33 test/dummy/app/controllers/custom/token_validations_controller.rb
devise_token_auth-0.1.32 test/dummy/app/controllers/custom/token_validations_controller.rb