Module: Hanami::Authentication::Token::ClassMethods
- Defined in:
- lib/hanami/authentication/token.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.extended(base) ⇒ Object
46 47 48 49 50 51 52 |
# File 'lib/hanami/authentication/token.rb', line 46 def self.extended(base) base.class_eval do include Utils::ClassAttribute class_attribute :find_user_block class_attribute :find_token_block end end |
Instance Method Details
#token_for_authenticate(&blk) ⇒ Object
58 59 60 |
# File 'lib/hanami/authentication/token.rb', line 58 def token_for_authenticate(&blk) self.find_token_block = blk end |
#user_for_authenticate(&blk) ⇒ Object
54 55 56 |
# File 'lib/hanami/authentication/token.rb', line 54 def user_for_authenticate(&blk) self.find_user_block = blk end |