Sha256: 795fd84148eec9cb40ee8428751be0e6665a422c21a604e7a7671fd7a42536df
Contents?: true
Size: 215 Bytes
Versions: 7
Compression:
Stored size: 215 Bytes
Contents
class User < ActiveRecord::Base if respond_to?(:attr_accessible) attr_accessible :name, :password end def self.authenticate!(name, password) User.where(name: name, password: password).first end end
Version data entries
7 entries across 7 versions & 1 rubygems