Sha256: 7c8341e78f57595b6d2d8ca0b0ed1508d322891d6caa09dcf5b0688b938f99b2

Contents?: true

Size: 225 Bytes

Versions: 2

Compression:

Stored size: 225 Bytes

Contents

module ArJsonSerialize
  module ActiveRecordExt
    def json_serialize(column)
      self.serialize column, ::ArJsonSerialize::Serializer
    end
  end
end
::ActiveRecord::Base.send :extend, ::ArJsonSerialize::ActiveRecordExt

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ar_json_serialize-0.0.2 lib/ar_json_serialize/activerecord_ext.rb
ar_json_serialize-0.0.1 lib/ar_json_serialize/activerecord_ext.rb