method
_marshal_dump_7_1
v7.1.3.2 -
Show latest stable
- Class:
ActiveRecord::Marshalling::Methods
_marshal_dump_7_1()public
No documentation available.
# 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