Sha256: bf710b54711e30726aa651f3474d527ce3e1060fcc27731038a4917398b6bfc4
Contents?: true
Size: 386 Bytes
Versions: 1
Compression:
Stored size: 386 Bytes
Contents
class User < ActiveRecord::Base devise :database_authenticatable, :validatable attr_accessible :first_name, :last_name, :email, :password, :password_confirmation, :account belongs_to :site has_many :bento_memberships has_many :accounts, :through => :bento_memberships fake_belongs_to :account def projects Project.where(:account_id => accounts.map(&:id)) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bento-0.0.3 | spec/rails_app/app/models/user.rb |