10 lines
137 B
Ruby
10 lines
137 B
Ruby
class Region < ActiveRecord::Base
|
|
has_many :lugs, foreign_key: :region
|
|
|
|
default_scope { order :name }
|
|
|
|
def to_s
|
|
name
|
|
end
|
|
end
|