Sha256: 63e72fa04ef6bee065eeb7e76d5f713721ddac7d02c3504feab18c859ce31710

Contents?: true

Size: 625 Bytes

Versions: 11

Compression:

Stored size: 625 Bytes

Contents

class User < ActiveRecord::Base
  # Include default devise modules. Others available are:
  # :token_authenticatable, :encryptable, :confirmable, :lockable, :timeoutable and :omniauthable
  devise :database_authenticatable, :registerable,
         :recoverable, :rememberable, :trackable, :validatable

  # Setup accessible (or protected) attributes for your model
  attr_accessible :email, :password, :password_confirmation, :remember_me

  has_one :user_has_role
  has_one :role, :through => :user_has_role
  belongs_to :user_group
  belongs_to :required_role, :class_name => 'Role', :foreign_key => 'required_role_id'
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
enju_subject-0.0.15 spec/dummy/app/models/user.rb
enju_subject-0.0.14 spec/dummy/app/models/user.rb
enju_subject-0.0.13 spec/dummy/app/models/user.rb
enju_subject-0.0.12 spec/dummy/app/models/user.rb
enju_subject-0.0.10 spec/dummy/app/models/user.rb
enju_subject-0.0.9 spec/dummy/app/models/user.rb
enju_subject-0.0.8 spec/dummy/app/models/user.rb
enju_subject-0.0.7 spec/dummy/app/models/user.rb
enju_subject-0.0.6 spec/dummy/app/models/user.rb
enju_subject-0.0.5 spec/dummy/app/models/user.rb
enju_subject-0.0.4 spec/dummy/app/models/user.rb