Skip to content

Commit

Permalink
Make options an attr_reader
Browse files Browse the repository at this point in the history
  • Loading branch information
spastorino committed Jul 30, 2010
1 parent b823e50 commit 95e9ced
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions activesupport/lib/active_support/cache.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 95e9ced

Please sign in to comment.