Permalink
Browse files

patch for Rails-2.2 compatibility

  • Loading branch information...
1 parent 73deec7 commit 5163aded0dd4d410a334f247d4f7769f5345594d zed committed Nov 9, 2008
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/acts_as_cached/benchmarking.rb
@@ -57,17 +57,17 @@ def logger; RAILS_DEFAULT_LOGGER end unless respond_to? :logger
end
def self.inject_into_logs!
- ActionController::Base.send :alias_method_chain, :rendering_runtime, :memcache
+ ActionController::Base.send :alias_method_chain, :view_runtime, :memcache
end
end
end
module ActionController
class Base
- def rendering_runtime_with_memcache(runtime) #:nodoc:
+ def view_runtime_with_memcache(runtime) #:nodoc:
cache_runtime = ActsAsCached::Benchmarking.cache_runtime
ActsAsCached::Benchmarking.cache_reset_runtime
- rendering_runtime_without_memcache(runtime) + (cache_runtime.nonzero? ? " | Memcache: #{"%.5f" % cache_runtime}" : '')
+ view_runtime_without_memcache(runtime) + (cache_runtime.nonzero? ? " | Memcache: #{"%.5f" % cache_runtime}" : '')
end
end
end

0 comments on commit 5163ade

Please sign in to comment.