Sha256: 7a529b39f0dc29915fbe89ff8e91f5c09a1da46dff93f04dfa2486023c22070c
Contents?: true
Size: 476 Bytes
Versions: 34
Compression:
Stored size: 476 Bytes
Contents
module ActiveRecord #:nodoc: # = Active Record \Serialization module Serialization extend ActiveSupport::Concern include ActiveModel::Serializers::JSON included do self.include_root_in_json = false end def serializable_hash(options = nil) options = options.try(:dup) || {} options[:except] = Array(options[:except]).map(&:to_s) options[:except] |= Array(self.class.inheritance_column) super(options) end end end
Version data entries
34 entries across 34 versions & 2 rubygems