Sha256: cfdeb4c8b1e15240657f63b0be4e192279153e0f7900ad36ab468535f1c78682

Contents?: true

Size: 1.07 KB

Versions: 8

Compression:

Stored size: 1.07 KB

Contents

# -*- encoding: utf-8 -*-
class UserGroup < ActiveRecord::Base
  include MasterModel
  has_many :profiles

  validates_numericality_of :valid_period_for_new_user,
    greater_than_or_equal_to: 0,
    allow_blank: true

  paginates_per 10

  enju_circulation_user_group_model if defined?(EnjuCirculation)
end

# == Schema Information
#
# Table name: user_groups
#
#  id                               :integer          not null, primary key
#  name                             :string
#  display_name                     :text
#  note                             :text
#  position                         :integer
#  created_at                       :datetime
#  updated_at                       :datetime
#  deleted_at                       :datetime
#  valid_period_for_new_user        :integer          default(0), not null
#  expired_at                       :datetime
#  number_of_day_to_notify_overdue  :integer          default(1), not null
#  number_of_day_to_notify_due_date :integer          default(7), not null
#  number_of_time_to_notify_overdue :integer          default(3), not null
#

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
enju_leaf-1.1.4 app/models/user_group.rb
enju_leaf-1.1.3 app/models/user_group.rb
enju_leaf-1.1.2 app/models/user_group.rb
enju_leaf-1.1.1 app/models/user_group.rb
enju_leaf-1.1.0 app/models/user_group.rb
enju_leaf-1.1.0.rc22 app/models/user_group.rb
enju_leaf-1.1.0.rc21 app/models/user_group.rb
enju_leaf-1.1.0.rc20 app/models/user_group.rb