Sha256: 2a028fe54475fd3de97d6e7f1a74fe8b2c65ee01c67c8b2df940192051a0fa65
Contents?: true
Size: 457 Bytes
Versions: 14
Compression:
Stored size: 457 Bytes
Contents
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
Version data entries
14 entries across 14 versions & 2 rubygems