lib/dao/data.rb in dao-4.2.1 vs lib/dao/data.rb in dao-4.4.2
- old
+ new
@@ -1,10 +1,11 @@
+# -*- encoding : utf-8 -*-
module Dao
class Data < ::Map
# look good for inspect
#
def inspect
- ::JSON.pretty_generate(self, :max_nesting => 0)
+ Dao.json_for(self)
end
# support updates with dao-ish objects
#
add_conversion_method!(:to_dao)