debian-mirror-gitlab/doorkeeper/spec/dummy/app/models/user.rb
2020-01-04 02:51:38 +05:30

5 lines
136 B
Ruby

class User < ActiveRecord::Base
def self.authenticate!(name, password)
User.where(name: name, password: password).first
end
end