aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/cache.rb
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2010-07-31 11:55:24 +0200
committerXavier Noria <fxn@hashref.com>2010-07-31 11:55:24 +0200
commit3d7099891f07395ed889e7da9e13b3ff9244d539 (patch)
tree6a988362ec4a6b58c90a12e6b715cd6926a111ce /activesupport/lib/active_support/cache.rb
parent0e20e3ebc20250174867f33e0ad3972f7e7c76d0 (diff)
parentd3819daaac0d2f730f2b34af31700c914e697375 (diff)
downloadrails-3d7099891f07395ed889e7da9e13b3ff9244d539.tar.gz
rails-3d7099891f07395ed889e7da9e13b3ff9244d539.tar.bz2
rails-3d7099891f07395ed889e7da9e13b3ff9244d539.zip
Merge remote branch 'rails/master'
Diffstat (limited to 'activesupport/lib/active_support/cache.rb')
-rw-r--r--activesupport/lib/active_support/cache.rb7
1 files changed, 1 insertions, 6 deletions
diff --git a/activesupport/lib/active_support/cache.rb b/activesupport/lib/active_support/cache.rb
index 8e90de110a..30195bdea5 100644
--- a/activesupport/lib/active_support/cache.rb
+++ b/activesupport/lib/active_support/cache.rb
@@ -138,7 +138,7 @@ module ActiveSupport
cattr_accessor :logger, :instance_writer => true
- attr_reader :silence
+ attr_reader :silence, :options
alias :silence? :silence
# Create a new cache. The options will be passed to any write method calls except
@@ -147,11 +147,6 @@ module ActiveSupport
@options = options ? options.dup : {}
end
- # Get the default options set when the cache was created.
- def options
- @options ||= {}
- end
-
# Silence the logger.
def silence!
@silence = true