parent
2404ea16b5
commit
3f5759ec87
@ -1,3 +1,9 @@
|
||||
class Lug < ActiveRecord::Base
|
||||
belongs_to :region, foreign_key: 'region'
|
||||
|
||||
def related_city
|
||||
if city.present?
|
||||
City.find_by_majname city.gsub('-', ' ').upcase
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in new issue