diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2010-07-30 11:27:25 -0300 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2010-07-30 12:09:47 -0300 |
commit | 95e9ced5815782980230221d6a0b33fde2d74c98 (patch) | |
tree | e55b6ea97f8752b3327b5d71db7f073c3a2cd94c | |
parent | b823e50a54156f688dd0892e7a8671b730814bc6 (diff) | |
download | rails-95e9ced5815782980230221d6a0b33fde2d74c98.tar.gz rails-95e9ced5815782980230221d6a0b33fde2d74c98.tar.bz2 rails-95e9ced5815782980230221d6a0b33fde2d74c98.zip |
Make options an attr_reader
-rw-r--r-- | activesupport/lib/active_support/cache.rb | 7 |
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 |