method

_marshal_dump_7_1

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: Methods
_marshal_dump_7_1() public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/marshalling.rb, line 24
      def _marshal_dump_7_1
        payload = [attributes_for_database, new_record?]

        cached_associations = self.class.reflect_on_all_associations.select do |reflection|
          association_cached?(reflection.name)
        end

        unless cached_associations.empty?
          payload << cached_associations.map do |reflection|
            [reflection.name, association(reflection.name).target]
          end
        end

        payload
      end
Register or log in to add new notes.