gitlabhq/app/helpers/profile_helper.rb

7 lines
134 B
Ruby

module ProfileHelper
def oauth_active_class provider
if current_user.provider == provider.to_s
'active'
end
end
end