Sha256: 023991e718dfbdc69ffcc57ccb7a10a7b9168983d476c456c1a1031be2669137
Contents?: true
Size: 404 Bytes
Versions: 2
Compression:
Stored size: 404 Bytes
Contents
if defined? ActiveRecord class User < ActiveRecord::Base end end if defined? Mongoid class User include Mongoid::Document include Mongoid::Timestamps field :name, :type => String field :password, :type => String end end class User attr_accessible :name, :password def self.authenticate!(name, password) User.where(:name => name, :password => password).first end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
doorkeeper-0.5.0 | spec/dummy/app/models/user.rb |
doorkeeper-0.5.0.rc1 | spec/dummy/app/models/user.rb |