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

Version Path
devise_sociable-0.1.0 vendor/bundle/gems/actionpack-1.4.0/lib/action_controller/session.rb
actionpack-1.1.0 lib/action_controller/session.rb
actionpack-1.4.0 lib/action_controller/session.rb
actionpack-1.5.0 lib/action_controller/session.rb
actionpack-1.2.0 lib/action_controller/session.rb
actionpack-1.3.0 lib/action_controller/session.rb
actionpack-1.3.1 lib/action_controller/session.rb
actionpack-1.6.0 lib/action_controller/session.rb
actionpack-1.8.0 lib/action_controller/session.rb
actionpack-1.9.0 lib/action_controller/session.rb
actionpack-1.8.1 lib/action_controller/session.rb
actionpack-1.7.0 lib/action_controller/session.rb
actionpack-1.5.1 lib/action_controller/session.rb
actionpack-1.9.1 lib/action_controller/session.rb