Sha256: 6f56609134fab59644053011fa560c89feb7baa2cdd56fe7b1b3eb0e7895f1ef

Contents?: true

Size: 241 Bytes

Versions: 25

Compression:

Stored size: 241 Bytes

Contents

module ProfilesHelper
  #Returns the value if user is signed in or a link to sign in view
  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
  
end

Version data entries

25 entries across 25 versions & 2 rubygems

Version Path
social_stream-base-2.0.0.beta3 app/helpers/profiles_helper.rb
social_stream-2.0.0.beta2 base/app/helpers/profiles_helper.rb
social_stream-base-2.0.0.beta2 app/helpers/profiles_helper.rb
social_stream-2.0.0.beta1 base/app/helpers/profiles_helper.rb
social_stream-base-2.0.0.beta1 app/helpers/profiles_helper.rb