Skip to content

Commit

Permalink
ActionView::Template::Error:
Browse files Browse the repository at this point in the history
       Cannot pass a :size option with a :height or :width option
  • Loading branch information
CloCkWeRX committed Jul 17, 2017
1 parent 6c9e782 commit 5df7d56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/application_helper.rb
Expand Up @@ -316,7 +316,7 @@ def avatar_for(model, args = {})
image_tag(model.avatar.image.url(args.delete(:size)), args)
else
args = Avatar.size_from_style!(args) # convert size format :large => '75x75'
gravatar_image_tag(model.email, args)
gravatar_image_tag(model.email, args.delete(:size))
end
end

Expand Down

0 comments on commit 5df7d56

Please sign in to comment.