Commit 4bc4e3b1
Changed files (1)
app
helpers
app/helpers/application_helper.rb
@@ -1,7 +1,7 @@
module ApplicationHelper
def avatar_for(user, size: 260, clazz: '')
return gravatar_for(user, size) if user.avatar == nil || !user.avatar.avatar.present?
- image_tag(user.avatar.avatar.thumb.url, alt: user.name, class: clazz, :style => "width:#{size}px;")
+ image_tag(user.avatar.avatar.thumb.url, alt: user.name, class: clazz, style: "width:#{size}px;")
end
def gravatar_for(user, size)