This method is deprecated or moved on the latest stable version.
The last existing version (v2.2.1) is shown here.
clear_persistent_model_associations(#:doc:)
private
Clear cached associations in session data so they don’t overflow the
database field. Only applies to ActiveRecordStore since there is not a
standard way to iterate over session data.
# File actionpack/lib/action_controller/session_management.rb, line 150
def clear_persistent_model_associations #:doc:
if defined?(@_session) && @_session.respond_to?(:data)
session_data = @_session.data
if session_data && session_data.respond_to?(:each_value)
session_data.each_value do |obj|
obj.clear_association_cache if obj.respond_to?(:clear_association_cache)
end
end
end
end