2014-08-06 14:47:47 +02:00
|
|
|
# This is mostly to group events around a region
|
2017-05-27 09:34:24 +02:00
|
|
|
class Region < ApplicationRecord
|
2017-05-20 16:02:07 +02:00
|
|
|
belongs_to :region
|
|
|
|
has_many :regions
|
|
|
|
|
2015-02-15 17:10:17 +01:00
|
|
|
has_many :orgas
|
2014-01-02 00:21:49 +01:00
|
|
|
|
2014-01-04 11:34:50 +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
|