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

11 lines
186 B
Ruby
Raw Normal View History

# This is mostly to group events around a region
2013-12-03 21:56:20 +01:00
class Region < ActiveRecord::Base
2013-12-29 23:25:38 +01:00
has_many :lugs, foreign_key: :region
2014-01-02 00:21:49 +01:00
default_scope { order :name }
2014-06-09 12:18:40 +02:00
def to_s
name
end
2013-12-03 21:56:20 +01:00
end