Module: ProfilesHelper

Defined in:
app/helpers/profiles_helper.rb

Instance Method Summary collapse

Instance Method Details

#show_if_signed_in(info) ⇒ Object

Returns the value if user is signed in or a link to sign in view



3
4
5
6
# File 'app/helpers/profiles_helper.rb', line 3

def show_if_signed_in(info)
  return info if user_signed_in?
  return link_to t('profile.must_be_signed_id'), new_user_session_path
end