8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# File 'lib/enju_circulation/user.rb', line 8
def enju_circulation_user_model
include InstanceMethods
has_many :checkouts, :dependent => :nullify
has_many :reserves, :dependent => :destroy
has_many :reserved_manifestations, :through => :reserves, :source => :manifestation
has_many :checkout_stat_has_users
has_many :user_checkout_stats, :through => :checkout_stat_has_users
has_many :reserve_stat_has_users
has_many :user_reserve_stats, :through => :reserve_stat_has_users
has_many :baskets, :dependent => :destroy
before_destroy :check_item_before_destroy
end
|