module ActionController #:nodoc:
  module Components
    module InstanceMethods
      private

      # By default, this logs *WAY* too much data for us when we're doing sidebars--I've seen ~2M
      # per hit.  This has a negative impact on performance.
      alias_method :orig_component_logging, :component_logging
      def component_logging(options, &block)
        orig_component_logging(options.reject {|k,v| k==:params}, &block)
      end
    end
  end
end

module ActionController #:nodoc:
  module Components
    module InstanceMethods
      private

      # By default, this logs *WAY* too much data for us when we're doing sidebars--I've seen ~2M
      # per hit.  This has a negative impact on performance.
      alias_method :component_logging_with_unfiltered_options, :component_logging
      def component_logging(options, &block)
        component_logging_with_unfiltered_options(options.reject {|k,v| k==:params}, &block)
      end
    end
  end
end

Rename orig_component_logging to something more descriptive, at pdcawley's request
Rename orig_component_logging to something more descriptive, at pdcawley's request

git-svn-id: 70ab0960c3db1cbf656efd6df54a8f3de72dc710@1020 820eb932-12ee-0310-9ca8-eeb645f39767
