Module: Doorkeeper::ApplicationMixin::ClassMethods

Defined in:
lib/doorkeeper/models/application_mixin.rb

Instance Method Summary collapse

Instance Method Details

#by_uid(uid) ⇒ Object


28
29
30
# File 'lib/doorkeeper/models/application_mixin.rb', line 28

def by_uid(uid)
  where(uid: uid).limit(1).to_a.first
end

#by_uid_and_secret(uid, secret) ⇒ Object


24
25
26
# File 'lib/doorkeeper/models/application_mixin.rb', line 24

def by_uid_and_secret(uid, secret)
  where(uid: uid, secret: secret).limit(1).to_a.first
end