From 95e9ced5815782980230221d6a0b33fde2d74c98 Mon Sep 17 00:00:00 2001 From: Santiago Pastorino Date: Fri, 30 Jul 2010 11:27:25 -0300 Subject: Make options an attr_reader --- activesupport/lib/active_support/cache.rb | 7 +------ 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3