Sha256: cd811858d7e4088d1aec8b612119d9756fb410cdcbeb1f85c51b5cc30c0f7a0b
Contents?: true
Size: 593 Bytes
Versions: 37
Compression:
Stored size: 593 Bytes
Contents
# frozen_string_literal: true 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) if self.class._has_attribute?(self.class.inheritance_column) options = options ? options.dup : {} options[:except] = Array(options[:except]).map(&:to_s) options[:except] |= Array(self.class.inheritance_column) end super(options) end end end
Version data entries
37 entries across 37 versions & 4 rubygems