Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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...
commit 1c8539da4738d51795422903b84f79705bc854cc 1 parent d8dee21
Rafael Mendonça França rafaelfranca authored

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. +2 1  actionpack/lib/action_view/digestor.rb
3  actionpack/lib/action_view/digestor.rb
@@ -18,7 +18,8 @@ class Digestor
18 18 ([@a-z"'][@a-z_\/\."']+) # the template name itself -- 2nd capture
19 19 /x
20 20
21   - cattr_accessor(:cache) { Hash.new }
  21 + cattr_reader(:cache)
  22 + @@cache = Hash.new
22 23
23 24 def self.digest(name, format, finder, options = {})
24 25 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.