Sha256: 39d9541ea093bbc80d0dc9f7c27419b337ecc6644d670bb8d80ffa521bd1e6f9
Contents?: true
Size: 552 Bytes
Versions: 22
Compression:
Stored size: 552 Bytes
Contents
class User < ActiveRecord::Base devise :database_authenticatable, :registerable, :recoverable, :rememberable, :trackable, :validatable # Setup accessible (or protected) attributes for your model # DEVISE attr_accessible :email, :password, :password_confirmation, :remember_me # OTHER attr_accessible :name, :role, :role_groups include_and_extend SimpleRoles tango_user # see macros has_friendly_id :name has_many :articles has_many :comments has_many :posts has_many :accounts, :foreign_key => "account_id" end
Version data entries
22 entries across 22 versions & 1 rubygems