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.2.7 app/helpers/invitation_only_helper.rb
bullet_train-1.2.6 app/helpers/invitation_only_helper.rb
bullet_train-1.2.5 app/helpers/invitation_only_helper.rb
bullet_train-1.2.4 app/helpers/invitation_only_helper.rb
bullet_train-1.2.3 app/helpers/invitation_only_helper.rb
bullet_train-1.2.2 app/helpers/invitation_only_helper.rb
bullet_train-1.2.1 app/helpers/invitation_only_helper.rb
bullet_train-1.2.0 app/helpers/invitation_only_helper.rb
bullet_train-1.1.10 app/helpers/invitation_only_helper.rb
bullet_train-1.1.9 app/helpers/invitation_only_helper.rb
bullet_train-1.1.7 app/helpers/invitation_only_helper.rb
bullet_train-1.1.6 app/helpers/invitation_only_helper.rb
bullet_train-1.1.5 app/helpers/invitation_only_helper.rb
bullet_train-1.1.4 app/helpers/invitation_only_helper.rb
bullet_train-1.1.3 app/helpers/invitation_only_helper.rb
bullet_train-1.1.2 app/helpers/invitation_only_helper.rb
bullet_train-1.1.1 app/helpers/invitation_only_helper.rb
bullet_train-1.1.0 app/helpers/invitation_only_helper.rb
bullet_train-1.0.99 app/helpers/invitation_only_helper.rb
bullet_train-1.0.98 app/helpers/invitation_only_helper.rb