Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Don't create addition vars, use options[] directly

  • Loading branch information...
commit 0ca6836a5a5dc249f82c98d34e17205a559157cf 1 parent f72feae
@strzalek strzalek authored strzalek committed
Showing with 2 additions and 7 deletions.
  1. +2 −7 actionview/lib/action_view/digestor.rb
View
9 actionview/lib/action_view/digestor.rb
@@ -20,14 +20,9 @@ class << self
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)
Please sign in to comment.
Something went wrong with that request. Please try again.