Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 822742164e
Fetching contributors…

Cannot retrieve contributors at this time

14 lines (13 sloc) 0.457 kB
module ActionController #:nodoc:
module Session #:nodoc:
def self.append_features(base) #:nodoc:
super #:nodoc:
base.after_filter(:clear_persistant_model_associations)
end
private
def clear_persistant_model_associations #:doc:
session = @session.instance_variable_get("@data")
session.each { |key, obj| obj.clear_association_cache if obj.respond_to?(:clear_association_cache) } if session
end
end
end
Jump to Line
Something went wrong with that request. Please try again.