lib/ecoportal/api/common/base_model.rb in ecoportal-api-0.7.4 vs lib/ecoportal/api/common/base_model.rb in ecoportal-api-0.7.5
- old
+ new
@@ -106,13 +106,13 @@
else
dig_set(_parent.doc, [_key].flatten, new_doc)
end
end
- # def pretty_print
- # puts JSON.pretty_generate(as_json)
- # self
- # end
+ def print_pretty
+ puts JSON.pretty_generate(as_json)
+ self
+ end
protected
def is_root?
_parent == self && !!defined?(@doc)