Sha256: 2b60ecf79aff6e95a88d04693f747dcfb162a90f8d00c1639ef5d39e57322d20
Contents?: true
Size: 577 Bytes
Versions: 28
Compression:
Stored size: 577 Bytes
Contents
class User < ActiveRecord::Base acts_as_universal_and_determines_account has_one :author has_many :posts, :through => :author, :source => 'posts' # Include default devise modules. Others available are: # :lockable, :encryptable, and :omniauthable devise :database_authenticatable, :registerable, :recoverable, :rememberable, :trackable, :validatable, :token_authenticatable, :confirmable, :timeoutable # Setup accessible (or protected) attributes for your model attr_accessible :email, :password, :password_confirmation, :remember_me end
Version data entries
28 entries across 28 versions & 1 rubygems