Permalink
Browse files

Rename _setup_options to _options_for_digest

  • Loading branch information...
lukaszx0 committed Mar 13, 2014
1 parent 4725d58 commit 3b9daf0ff9f7981d375e7617b1ec46e9fc988aaa
Showing with 3 additions and 3 deletions.
  1. +3 −3 actionview/lib/action_view/digestor.rb
@@ -18,7 +18,7 @@ class << self
# * <tt>dependencies</tt> - An array of dependent views
# * <tt>partial</tt> - Specifies whether the template is a partial
def digest(*args)
- options = _setup_options(*args)
+ options = _options_for_digest(*args)
details_key = options[:finder].details_key.hash
dependencies = Array.wrap(options[:dependencies])
@@ -33,7 +33,7 @@ def digest(*args)
end
end
- def _setup_options(*args)
+ def _options_for_digest(*args)
unless args.first.is_a?(Hash)
ActiveSupport::Deprecation.warn("Arguments to ActionView::Digestor should be provided as a hash. The support for regular arguments will be removed in Rails 5.0 or later")
@@ -76,7 +76,7 @@ def compute_and_store_digest(cache_key, options) # called under @@digest_monitor
attr_reader :name, :format, :variant, :finder, :options
def initialize(*args)
- @options = self.class._setup_options(*args)
+ @options = self.class._options_for_digest(*args)
@name = @options.delete(:name)
@format = @options.delete(:format)

0 comments on commit 3b9daf0

Please sign in to comment.