Class: Gemgento::Country
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Gemgento::Country
- Defined in:
- app/models/gemgento/country.rb
Overview
Instance Method Summary collapse
-
#as_json(options = nil) ⇒ Hash
JSON representation of the Country.
Instance Method Details
#as_json(options = nil) ⇒ Hash
JSON representation of the Country.
13 14 15 16 17 18 |
# File 'app/models/gemgento/country.rb', line 13 def as_json( = nil) result = super result[:regions] = self.regions if self.regions.loaded? return result end |