lib/dm-pg-json/property/pgjson.rb in dm-pg-json-0.1.1 vs lib/dm-pg-json/property/pgjson.rb in dm-pg-json-0.2.0
- old
+ new
@@ -3,10 +3,10 @@
require 'dm-core'
require 'dm-types/support/dirty_minder'
module DataMapper
class Property
- class PgJSON < Text
+ class PgJSON < Object
def dump(value)
case value
when ::NilClass, ::String
value
when ::Hash, ::Array