diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-01-10 13:34:40 -0200 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-01-10 13:34:40 -0200 |
commit | 2b5019e234b89a201e11ade6e280f3fc0e64f577 (patch) | |
tree | e130e791c5353b1475e17ca9c9b428189b193925 /actionpack/lib/action_controller/caching.rb | |
parent | 8d926f58d91020f9a8936ad6908939c0e298907b (diff) | |
parent | 0121377cfb864e3a455280ff00531c4b066848bb (diff) | |
download | rails-2b5019e234b89a201e11ade6e280f3fc0e64f577.tar.gz rails-2b5019e234b89a201e11ade6e280f3fc0e64f577.tar.bz2 rails-2b5019e234b89a201e11ade6e280f3fc0e64f577.zip |
Merge pull request #8821 from jamis/master
Evaluate view_cache_dependencies at the instance level
Conflicts:
actionpack/lib/action_controller/caching.rb
Diffstat (limited to 'actionpack/lib/action_controller/caching.rb')
-rw-r--r-- | actionpack/lib/action_controller/caching.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/actionpack/lib/action_controller/caching.rb b/actionpack/lib/action_controller/caching.rb index 0f4cced32a..cf2cda039d 100644 --- a/actionpack/lib/action_controller/caching.rb +++ b/actionpack/lib/action_controller/caching.rb @@ -80,10 +80,6 @@ module ActionController def view_cache_dependency(&dependency) self._view_cache_dependencies += [dependency] end - - def view_cache_dependencies - _view_cache_dependencies.map { |dep| instance_exec(&dep) }.compact - end end def caching_allowed? @@ -91,7 +87,7 @@ module ActionController end def view_cache_dependencies - self.class.view_cache_dependencies + self.class._view_cache_dependencies.map { |dep| instance_exec(&dep) }.compact end protected |