Cleanup after omniauth

This commit is contained in:
Dmitriy Zaporozhets 2012-09-12 08:23:20 +03:00
parent 486de8c3f4
commit fa4150d47d
9 changed files with 49 additions and 47 deletions

View file

@ -137,7 +137,8 @@ module ApplicationHelper
end
def authbutton(provider, size = 64)
image_tag("authbuttons/#{provider.to_s.split('_').first}_#{size}.png",
alt: "Sign in with #{provider.to_s.titleize}" )
file_name = "#{provider.to_s.split('_').first}_#{size}.png"
image_tag("authbuttons/#{file_name}",
alt: "Sign in with #{provider.to_s.titleize}")
end
end