Sha256: ea12e93336010f03cea2e0620e9982c102343a94040606c2dd9d83fd5678bd09

Contents?: true

Size: 615 Bytes

Versions: 9

Compression:

Stored size: 615 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, :order => :position
        has_many :lending_policies

        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

9 entries across 9 versions & 1 rubygems

Version Path
enju_circulation-0.1.0.pre24 lib/enju_circulation/user_group.rb
enju_circulation-0.1.0.pre23 lib/enju_circulation/user_group.rb
enju_circulation-0.1.0.pre22 lib/enju_circulation/user_group.rb
enju_circulation-0.1.0.pre21 lib/enju_circulation/user_group.rb
enju_circulation-0.1.0.pre20 lib/enju_circulation/user_group.rb
enju_circulation-0.1.0.pre19 lib/enju_circulation/user_group.rb
enju_circulation-0.1.0.pre18 lib/enju_circulation/user_group.rb
enju_circulation-0.1.0.pre17 lib/enju_circulation/user_group.rb
enju_circulation-0.1.0.pre16 lib/enju_circulation/user_group.rb