Method: Harvest::Model::InstanceMethods#as_json
- Defined in:
- lib/harvest/model.rb
#as_json(args = {}) ⇒ Object
13 14 15 16 17 18 19 20 21 |
# File 'lib/harvest/model.rb', line 13 def as_json(args = {}) inner_json = self.to_hash.stringify_keys inner_json.delete("cache_version") if self.class.skip_json_root? inner_json else { self.class.json_root => inner_json } end end |