agenda-libre-ruby/app/models/region.rb

12 lines
227 B
Ruby

# This is mostly to group events around a region
class Region < ActiveRecord::Base
has_many :lugs, foreign_key: :region
has_many :events, foreign_key: :region
default_scope { order :name }
def to_s
name
end
end