Sha256: a6437d2d05d59e6c1e82542af150301ba2cf8218787c5edffbc81ebde6ba2108

Contents?: true

Size: 438 Bytes

Versions: 66

Compression:

Stored size: 438 Bytes

Contents

class EventCategory < ActiveRecord::Base
  include MasterModel
  default_scope :order => "position"
  has_many :events

  def self.per_page
    10
  end
end

# == Schema Information
#
# Table name: event_categories
#
#  id           :integer         not null, primary key
#  name         :string(255)     not null
#  display_name :text
#  note         :text
#  position     :integer
#  created_at   :datetime
#  updated_at   :datetime
#

Version data entries

66 entries across 66 versions & 2 rubygems

Version Path
enju_circulation-0.0.47 spec/dummy/app/models/event_category.rb
enju_circulation-0.0.46 spec/dummy/app/models/event_category.rb
enju_circulation-0.0.45 spec/dummy/app/models/event_category.rb
enju_circulation-0.0.43 spec/dummy/app/models/event_category.rb
enju_event-0.0.19 app/models/event_category.rb
enju_circulation-0.0.42 spec/dummy/app/models/event_category.rb
enju_event-0.1.6 app/models/event_category.rb
enju_circulation-0.0.41 spec/dummy/app/models/event_category.rb
enju_circulation-0.0.40 spec/dummy/app/models/event_category.rb
enju_circulation-0.0.39 spec/dummy/app/models/event_category.rb
enju_circulation-0.0.38 spec/dummy/app/models/event_category.rb
enju_circulation-0.0.37 spec/dummy/app/models/event_category.rb
enju_circulation-0.0.36 spec/dummy/app/models/event_category.rb
enju_circulation-0.0.35 spec/dummy/app/models/event_category.rb
enju_circulation-0.0.34 spec/dummy/app/models/event_category.rb
enju_event-0.0.18 app/models/event_category.rb
enju_event-0.0.17 app/models/event_category.rb
enju_event-0.1.5 app/models/event_category.rb
enju_event-0.0.16 app/models/event_category.rb
enju_circulation-0.0.33 spec/dummy/app/models/event_category.rb