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

11 lines
186 B
Ruby

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