Use Object#tap instead of #returning (#6887).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4406 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
1 parent
c4a218358f
commit
2ee45e8cac
6 files changed
+8
-8
No files matched your search
+1
-1
@@ -71,7 +71,7 @@ module GravatarHelper
|
||||
email_hash = Digest::MD5.hexdigest(email)
|
||||
options = DEFAULT_OPTIONS.merge(options)
|
||||
options[:default] = CGI::escape(options[:default]) unless options[:default].nil?
|
||||
returning gravatar_api_url(email_hash, options.delete(:ssl)) do |url|
|
||||
gravatar_api_url(email_hash, options.delete(:ssl)).tap do |url|
|
||||
opts = []
|
||||
[:rating, :size, :default].each do |opt|
|
||||
unless options[opt].nil?
|
||||
|
||||
Reference in new issue
Block a user