aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/cache.rb
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2010-07-30 11:27:25 -0300
committerSantiago Pastorino <santiago@wyeworks.com>2010-07-30 12:09:47 -0300
commit95e9ced5815782980230221d6a0b33fde2d74c98 (patch)
treee55b6ea97f8752b3327b5d71db7f073c3a2cd94c /activesupport/lib/active_support/cache.rb
parentb823e50a54156f688dd0892e7a8671b730814bc6 (diff)
downloadrails-95e9ced5815782980230221d6a0b33fde2d74c98.tar.gz
rails-95e9ced5815782980230221d6a0b33fde2d74c98.tar.bz2
rails-95e9ced5815782980230221d6a0b33fde2d74c98.zip
Make options an attr_reader
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