Skip to content
Browse files

Define just the cattr_reader.

This will trim down the API and avoid some error that can be made
changing the cache object.
  • Loading branch information...
1 parent d8dee21 commit 1c8539da4738d51795422903b84f79705bc854cc @rafaelfranca rafaelfranca committed Sep 5, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 actionpack/lib/action_view/digestor.rb
View
3 actionpack/lib/action_view/digestor.rb
@@ -18,7 +18,8 @@ class Digestor
([@a-z"'][@a-z_\/\."']+) # the template name itself -- 2nd capture
/x
- cattr_accessor(:cache) { Hash.new }
+ cattr_reader(:cache)
+ @@cache = Hash.new
def self.digest(name, format, finder, options = {})
cache["#{name}.#{format}"] ||= new(name, format, finder, options).digest

0 comments on commit 1c8539d

Please sign in to comment.
Something went wrong with that request. Please try again.