Sha256: f595533ceaee456be59ebe086bbf4ff5ebac506758c58f459b48cd568f9fbfdd

Contents?: true

Size: 478 Bytes

Versions: 6

Compression:

Stored size: 478 Bytes

Contents

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

  has_one  :member, :dependent => :destroy
  has_many :tenanted_members, :dependent => :destroy,
           :class_name => "Member", :foreign_key => 'user_id'


end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
milia-1.2.1 test/app/models/user.rb
milia-1.2.0 test/app/models/user.rb
milia-1.1.1 test/app/models/user.rb
milia-1.0.1 test/app/models/user.rb
milia-1.1.0 test/app/models/user.rb
milia-1.0.0 test/app/models/user.rb