Sha256: 6a7754d5965ec2fa382e120bcebdeff3e8964ac7d023868037065e8ae156881c
Contents?: true
Size: 707 Bytes
Versions: 11
Compression:
Stored size: 707 Bytes
Contents
module EnjuCirculation module EnjuUserGroup def self.included(base) base.extend ClassMethods end module ClassMethods 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 end end end
Version data entries
11 entries across 11 versions & 1 rubygems