Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make options an attr_reader

  • Loading branch information...
commit 95e9ced5815782980230221d6a0b33fde2d74c98 1 parent b823e50
@spastorino spastorino authored
Showing with 1 addition and 6 deletions.
  1. +1 −6 activesupport/lib/active_support/cache.rb
View
7 activesupport/lib/active_support/cache.rb
@@ -138,7 +138,7 @@ class Store
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 @@ def initialize (options = nil)
@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
Please sign in to comment.
Something went wrong with that request. Please try again.