Clean up interface inconistency

This commit is contained in:
twinturbo
2012-07-14 14:19:08 +02:00
parent 535a33a33b
commit e3888f0a40
2 changed files with 7 additions and 7 deletions

View File

@@ -74,7 +74,7 @@ module ActiveModel
class << self
# set peform caching like root
def cache(value = true)
def cached(value = true)
self.perform_caching = value
end
@@ -441,7 +441,7 @@ module ActiveModel
end
def perform_caching?
perform_caching && cache && try(:cache_key)
perform_caching && cache && respond_to?(:cache_key)
end
def expand_cache_key(*args)