lib/administrate/serialized_fields.rb in administrate-serialized_fields-0.1.0 vs lib/administrate/serialized_fields.rb in administrate-serialized_fields-0.1.1

- old
+ new

@@ -1,10 +1,10 @@ require 'administrate/serialized_fields/version' require 'active_support/concern' require 'active_support/core_ext/module/attribute_accessors' -module Admin +module Administrate module SerializedFields extend ActiveSupport::Concern mattr_accessor :load_json self.load_json = defined?(Oj) ? -> (data) { Oj.load(data) } : -> (data) { JSON.parse(data) }