Module: OAuth2::Provider::Models::Mongoid::AccessToken::Behaviour::ClassMethods
- Defined in:
- lib/oauth2/provider/models/mongoid/access_token.rb
Instance Method Summary collapse
Instance Method Details
#find_by_access_token(access_token) ⇒ Object
33 34 35 |
# File 'lib/oauth2/provider/models/mongoid/access_token.rb', line 33 def find_by_access_token(access_token) where(:access_token => access_token).first end |
#find_by_refresh_token(refresh_token) ⇒ Object
29 30 31 |
# File 'lib/oauth2/provider/models/mongoid/access_token.rb', line 29 def find_by_refresh_token(refresh_token) where(:refresh_token => refresh_token).first end |