Module: OAuth2::Provider::Models::Mongoid::AuthorizationCode::Behaviour::ClassMethods
- Defined in:
- lib/oauth2/provider/models/mongoid/authorization_code.rb
Instance Method Summary collapse
- #find_by_code(code) ⇒ Object
- #find_by_code_and_redirect_uri(code, redirect_uri) ⇒ Object
- #find_by_id(id) ⇒ Object
Instance Method Details
#find_by_code(code) ⇒ Object
36 37 38 |
# File 'lib/oauth2/provider/models/mongoid/authorization_code.rb', line 36 def find_by_code(code) where(:code => code).first end |
#find_by_code_and_redirect_uri(code, redirect_uri) ⇒ Object
28 29 30 |
# File 'lib/oauth2/provider/models/mongoid/authorization_code.rb', line 28 def find_by_code_and_redirect_uri(code, redirect_uri) where(:code => code, :redirect_uri => redirect_uri).first end |
#find_by_id(id) ⇒ Object
32 33 34 |
# File 'lib/oauth2/provider/models/mongoid/authorization_code.rb', line 32 def find_by_id(id) where(:id => id).first end |