Sha256: a3993ca9ccc556c6872b686d0bc0de7f76c3f13f0b74b7fd12f8ec42f9912a2b

Contents?: true

Size: 233 Bytes

Versions: 126

Compression:

Stored size: 233 Bytes

Contents

module InvitationOnlyHelper
  def invited?
    session[:invitation_key].present? && invitation_keys.include?(session[:invitation_key])
  end

  def show_sign_up_options?
    return true unless invitation_only?
    invited?
  end
end

Version data entries

126 entries across 126 versions & 1 rubygems

Version Path
bullet_train-1.0.5 app/helpers/invitation_only_helper.rb
bullet_train-1.0.4 app/helpers/invitation_only_helper.rb
bullet_train-1.0.3 app/helpers/invitation_only_helper.rb
bullet_train-1.0.2 app/helpers/invitation_only_helper.rb
bullet_train-1.0.1 app/helpers/invitation_only_helper.rb
bullet_train-1.0.0 app/helpers/invitation_only_helper.rb