Sha256: 6b5caf2e3818dbbaa54f7b306f9567019820c72f558f60e6f5611afbbb638a4e

Contents?: true

Size: 1.12 KB

Versions: 34

Compression:

Stored size: 1.12 KB

Contents

# -*- encoding: utf-8 -*-
class UserGroup < ActiveRecord::Base
  include MasterModel
  default_scope :order => "position"
  has_many :users
  if defined?(EnjuCirculation)
  end

  validates_numericality_of :valid_period_for_new_user,
    :greater_than_or_equal_to => 0

  def self.per_page
    10
  end
end

# == Schema Information
#
# Table name: user_groups
#
#  id                               :integer         not null, primary key
#  name                             :string(255)
#  string                           :string(255)
#  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

34 entries across 34 versions & 1 rubygems

Version Path
enju_bookmark-0.1.2.pre11 spec/dummy/app/models/user_group.rb
enju_bookmark-0.1.2.pre10 spec/dummy/app/models/user_group.rb
enju_bookmark-0.1.2.pre9 spec/dummy/app/models/user_group.rb
enju_bookmark-0.1.2.pre8 spec/dummy/app/models/user_group.rb
enju_bookmark-0.1.2.pre7 spec/dummy/app/models/user_group.rb
enju_bookmark-0.1.2.pre6 spec/dummy/app/models/user_group.rb
enju_bookmark-0.1.2.pre5 spec/dummy/app/models/user_group.rb
enju_bookmark-0.1.2.pre4 spec/dummy/app/models/user_group.rb
enju_bookmark-0.1.2.pre3 spec/dummy/app/models/user_group.rb
enju_bookmark-0.1.2.pre2 spec/dummy/app/models/user_group.rb
enju_bookmark-0.1.2.pre spec/dummy/app/models/user_group.rb
enju_bookmark-0.1.1 spec/dummy/app/models/user_group.rb
enju_bookmark-0.1.0.pre spec/dummy/app/models/user_group.rb
enju_bookmark-0.1.0 spec/dummy/app/models/user_group.rb
enju_bookmark-0.0.22 spec/dummy/app/models/user_group.rb
enju_bookmark-0.0.21 spec/dummy/app/models/user_group.rb
enju_bookmark-0.0.20 spec/dummy/app/models/user_group.rb
enju_bookmark-0.0.19 spec/dummy/app/models/user_group.rb
enju_bookmark-0.0.18 spec/dummy/app/models/user_group.rb
enju_bookmark-0.0.17 spec/dummy/app/models/user_group.rb