app/models/hood.rb in geopolitical-0.9.1 vs app/models/hood.rb in geopolitical-0.9.3

- old
+ new

@@ -17,6 +17,14 @@ end def postal self[:postal] || city.postal end + + def as_json(_opts = {}) + { + id: id.to_s, + name: name, + city: city + } + end end