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-2.2.2 base/app/helpers/profiles_helper.rb
social_stream-base-2.2.2 app/helpers/profiles_helper.rb
social_stream-2.2.1 base/app/helpers/profiles_helper.rb
social_stream-base-2.2.1 app/helpers/profiles_helper.rb
social_stream-2.2.0 base/app/helpers/profiles_helper.rb
social_stream-base-2.2.0 app/helpers/profiles_helper.rb
social_stream-2.1.1 base/app/helpers/profiles_helper.rb
social_stream-2.1.0 base/app/helpers/profiles_helper.rb
social_stream-base-2.1.0 app/helpers/profiles_helper.rb
social_stream-2.0.4 base/app/helpers/profiles_helper.rb
social_stream-base-2.0.4 app/helpers/profiles_helper.rb
social_stream-2.0.3 base/app/helpers/profiles_helper.rb
social_stream-base-2.0.3 app/helpers/profiles_helper.rb
social_stream-2.0.2 base/app/helpers/profiles_helper.rb
social_stream-base-2.0.2 app/helpers/profiles_helper.rb
social_stream-2.0.1 base/app/helpers/profiles_helper.rb
social_stream-base-2.0.1 app/helpers/profiles_helper.rb
social_stream-2.0.0 base/app/helpers/profiles_helper.rb
social_stream-base-2.0.0 app/helpers/profiles_helper.rb
social_stream-2.0.0.beta3 base/app/helpers/profiles_helper.rb