Sha256: a333540f1a978189d6475c1333a138bd73a45a33034fdc1dae55d1cf7a58b6c9
Contents?: true
Size: 580 Bytes
Versions: 5
Compression:
Stored size: 580 Bytes
Contents
module EnjuCirculation module EnjuUserGroup extend ActiveSupport::Concern included do has_many :user_group_has_checkout_types, dependent: :destroy has_many :checkout_types, through: :user_group_has_checkout_types accepts_nested_attributes_for :user_group_has_checkout_types, allow_destroy: true, reject_if: :all_blank validates :number_of_day_to_notify_due_date, :number_of_day_to_notify_overdue, :number_of_time_to_notify_overdue, numericality: { greater_than_or_equal_to: 0 } end end end
Version data entries
5 entries across 5 versions & 1 rubygems