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.97 app/helpers/invitation_only_helper.rb
bullet_train-1.0.96 app/helpers/invitation_only_helper.rb
bullet_train-1.0.95 app/helpers/invitation_only_helper.rb
bullet_train-1.0.93 app/helpers/invitation_only_helper.rb
bullet_train-1.0.92 app/helpers/invitation_only_helper.rb
bullet_train-1.0.90 app/helpers/invitation_only_helper.rb
bullet_train-1.0.89 app/helpers/invitation_only_helper.rb
bullet_train-1.0.88 app/helpers/invitation_only_helper.rb
bullet_train-1.0.87 app/helpers/invitation_only_helper.rb
bullet_train-1.0.86 app/helpers/invitation_only_helper.rb
bullet_train-1.0.85 app/helpers/invitation_only_helper.rb
bullet_train-1.0.83 app/helpers/invitation_only_helper.rb
bullet_train-1.0.81 app/helpers/invitation_only_helper.rb
bullet_train-1.0.79 app/helpers/invitation_only_helper.rb
bullet_train-1.0.76 app/helpers/invitation_only_helper.rb
bullet_train-1.0.75 app/helpers/invitation_only_helper.rb
bullet_train-1.0.74 app/helpers/invitation_only_helper.rb
bullet_train-1.0.72 app/helpers/invitation_only_helper.rb
bullet_train-1.0.71 app/helpers/invitation_only_helper.rb
bullet_train-1.0.70 app/helpers/invitation_only_helper.rb