Sha256: 8e4e7655659bffb0d8e055848dc31cd9df46c723cc7f727cda0f5e21442bad00

Contents?: true

Size: 484 Bytes

Versions: 15

Compression:

Stored size: 484 Bytes

Contents

class EventCategory < ActiveRecord::Base
  attr_accessible :name, :display_name, :note
  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

15 entries across 15 versions & 1 rubygems

Version Path
enju_event-0.1.13 app/models/event_category.rb
enju_event-0.0.27 app/models/event_category.rb
enju_event-0.0.26 app/models/event_category.rb
enju_event-0.0.25 app/models/event_category.rb
enju_event-0.1.12 app/models/event_category.rb
enju_event-0.1.11 app/models/event_category.rb
enju_event-0.0.24 app/models/event_category.rb
enju_event-0.0.23 app/models/event_category.rb
enju_event-0.1.10 app/models/event_category.rb
enju_event-0.1.9 app/models/event_category.rb
enju_event-0.0.22 app/models/event_category.rb
enju_event-0.0.21 app/models/event_category.rb
enju_event-0.1.8 app/models/event_category.rb
enju_event-0.0.20 app/models/event_category.rb
enju_event-0.1.7 app/models/event_category.rb