8
9
10
11
12
13
14
15
16
17
18
|
# File 'lib/enju_circulation/user_group.rb', line 8
def enju_circulation_user_group_model
has_many :user_group_has_checkout_types, dependent: :destroy
has_many :checkout_types, through: :user_group_has_checkout_types
has_many :lending_policies
accepts_nested_attributes_for :user_group_has_checkout_types, :allow_destroy => true, :reject_if => :all_blank
validates_numericality_of :number_of_day_to_notify_due_date,
:number_of_day_to_notify_overdue,
:number_of_time_to_notify_overdue,
:greater_than_or_equal_to => 0
end
|