Sha256: 3a59bf450d445687273cae4e35f701898f4e4258095fc94942e65f6b2118d1bc
Contents?: true
Size: 304 Bytes
Versions: 2
Compression:
Stored size: 304 Bytes
Contents
class User < Sequel::Model include Doorkeeper::Orm::Sequel::SequelCompat class << self def authenticate!(name, password) User.where(name: name, password: password).first end def create!(values = {}, &block) new(values, &block).save(raise_on_failure: true) end end end
Version data entries
2 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
doorkeeper-sequel-1.4.0 | spec/dummy/app/models/user.rb |
doorkeeper-sequel-1.4.0 | spec/stubs/models/user.rb |