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.69 app/helpers/invitation_only_helper.rb
bullet_train-1.0.68 app/helpers/invitation_only_helper.rb
bullet_train-1.0.67 app/helpers/invitation_only_helper.rb
bullet_train-1.0.66 app/helpers/invitation_only_helper.rb
bullet_train-1.0.65 app/helpers/invitation_only_helper.rb
bullet_train-1.0.64 app/helpers/invitation_only_helper.rb
bullet_train-1.0.63 app/helpers/invitation_only_helper.rb
bullet_train-1.0.62 app/helpers/invitation_only_helper.rb
bullet_train-1.0.61 app/helpers/invitation_only_helper.rb
bullet_train-1.0.60 app/helpers/invitation_only_helper.rb
bullet_train-1.0.59 app/helpers/invitation_only_helper.rb
bullet_train-1.0.58 app/helpers/invitation_only_helper.rb
bullet_train-1.0.57 app/helpers/invitation_only_helper.rb
bullet_train-1.0.56 app/helpers/invitation_only_helper.rb
bullet_train-1.0.53 app/helpers/invitation_only_helper.rb
bullet_train-1.0.52 app/helpers/invitation_only_helper.rb
bullet_train-1.0.51 app/helpers/invitation_only_helper.rb
bullet_train-1.0.50 app/helpers/invitation_only_helper.rb
bullet_train-1.0.49 app/helpers/invitation_only_helper.rb
bullet_train-1.0.48 app/helpers/invitation_only_helper.rb