lib/pg_serializable.rb in pg_serializable-2.1.1 vs lib/pg_serializable.rb in pg_serializable-3.0.0
- old
+ new
@@ -55,10 +55,10 @@
visitor.visit self, **kwargs
end
def to_pg_json(scope)
res = scope.as_json.first
- ::Oj.dump(res['coalesce'] || res['json_build_object'])
+ res['coalesce'] || res['json_build_object']
end
private
delegate :validate_traits!, to: :trait_manager