diff options
author | Łukasz Strzałkowski <lukasz.strzalkowski@gmail.com> | 2014-03-11 16:30:58 +0100 |
---|---|---|
committer | Lukasz Strzalkowski <lukaszstrzalkowski@squareup.com> | 2014-03-13 17:53:23 +0100 |
commit | 0ca6836a5a5dc249f82c98d34e17205a559157cf (patch) | |
tree | c2ff7b4ca486a0c29e84c46cc3d2fc6a2eedf331 /actionview | |
parent | f72feae9bafbadfd4da4e383bb302afc33c7d3e0 (diff) | |
download | rails-0ca6836a5a5dc249f82c98d34e17205a559157cf.tar.gz rails-0ca6836a5a5dc249f82c98d34e17205a559157cf.tar.bz2 rails-0ca6836a5a5dc249f82c98d34e17205a559157cf.zip |
Don't create addition vars, use options[] directly
Diffstat (limited to 'actionview')
-rw-r--r-- | actionview/lib/action_view/digestor.rb | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/actionview/lib/action_view/digestor.rb b/actionview/lib/action_view/digestor.rb index 4e3773abe7..df6e7bba60 100644 --- a/actionview/lib/action_view/digestor.rb +++ b/actionview/lib/action_view/digestor.rb @@ -20,14 +20,9 @@ module ActionView def digest(*args) options = _setup_options(*args) - name = options[:name] - format = options[:format] - variant = options[:variant] - finder = options[:finder] - - details_key = finder.details_key.hash + details_key = options[:finder].details_key.hash dependencies = Array.wrap(options[:dependencies]) - cache_key = ([name, details_key, format, variant].compact + dependencies).join('.') + cache_key = ([options[:name], details_key, options[:format], options[:variant]].compact + dependencies).join('.') # this is a correctly done double-checked locking idiom # (ThreadSafe::Cache's lookups have volatile semantics) |