app/models/city.rb in geopolitical-0.9.1 vs app/models/city.rb in geopolitical-0.9.3
- old
+ new
@@ -37,11 +37,19 @@
def phone
self[:phone] || region.phone || nation.phone
end
+ def phones
+ hoods.map(&:phone)
+ end
+
def postal
self[:postal] || region.postal || nation.postal
+ end
+
+ def postals
+ hoods.map(&:postal)
end
def ==(other)
other && slug == other.slug
end