Sha256: fde32ce7cabf88db963658b8958c393abdece04287415dcf70ea5babd2f82734
Contents?: true
Size: 478 Bytes
Versions: 21
Compression:
Stored size: 478 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(:clone) || {} options[:except] = Array(options[:except]).map(&:to_s) options[:except] |= Array(self.class.inheritance_column) super(options) end end end
Version data entries
21 entries across 21 versions & 3 rubygems