agenda-libre-ruby/app/models/region.rb
echarp 7f2b5a7a6e Regions can now be organised into a hierarchy.
The region selector is back on the top page, but right under the related country's flag
2017-05-20 16:02:07 +02:00

14 lines
207 B
Ruby

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