diff options
author | Łukasz Strzałkowski <lukasz.strzalkowski@gmail.com> | 2014-03-13 16:27:24 +0100 |
---|---|---|
committer | Łukasz Strzałkowski <lukasz.strzalkowski@gmail.com> | 2014-03-14 13:18:20 +0100 |
commit | 3b9daf0ff9f7981d375e7617b1ec46e9fc988aaa (patch) | |
tree | 12e5fa2f4d6eec63c789d45dfca1042b7de82a3c /actionview | |
parent | 4725d588960213fd617d3d17c936aa206a161cfb (diff) | |
download | rails-3b9daf0ff9f7981d375e7617b1ec46e9fc988aaa.tar.gz rails-3b9daf0ff9f7981d375e7617b1ec46e9fc988aaa.tar.bz2 rails-3b9daf0ff9f7981d375e7617b1ec46e9fc988aaa.zip |
Rename _setup_options to _options_for_digest
Diffstat (limited to 'actionview')
-rw-r--r-- | actionview/lib/action_view/digestor.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/actionview/lib/action_view/digestor.rb b/actionview/lib/action_view/digestor.rb index 666291e1c1..dad3cea73a 100644 --- a/actionview/lib/action_view/digestor.rb +++ b/actionview/lib/action_view/digestor.rb @@ -18,7 +18,7 @@ module ActionView # * <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 @@ module ActionView 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 @@ module ActionView 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) |