lib/pg_serializable.rb in pg_serializable-1.0.0 vs lib/pg_serializable.rb in pg_serializable-1.0.1
- old
+ new
@@ -5,9 +5,11 @@
require 'pg_serializable/nodes'
require 'pg_serializable/trait_manager'
require 'pg_serializable/trait'
require 'pg_serializable/visitors'
+Oj.mimic_JSON()
+
module ActiveRecord
class Relation
include PgSerializable::Visitable
def json(trait: :default)