Module: ActiveRecord::Serialization
- Extended by:
- ActiveSupport::Concern
- Includes:
- ActiveModel::Serializers::JSON
- Included in:
- Base
- Defined in:
- activerecord/lib/active_record/serialization.rb
Overview
Active Record Serialization
Instance Method Summary collapse
Methods included from ActiveSupport::Concern
append_features, class_methods, extended, included, prepend_features, prepended
Methods included from ActiveModel::Serializers::JSON
Instance Method Details
#serializable_hash(options = nil) ⇒ Object
13 14 15 16 17 18 19 20 21 22 |
# File 'activerecord/lib/active_record/serialization.rb', line 13 def serializable_hash( = nil) if self.class._has_attribute?(self.class.inheritance_column) = ? .dup : {} [:except] = Array([:except]).map(&:to_s) [:except] |= Array(self.class.inheritance_column) end super() end |