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.27 app/helpers/invitation_only_helper.rb
bullet_train-1.2.26 app/helpers/invitation_only_helper.rb
bullet_train-1.2.25 app/helpers/invitation_only_helper.rb
bullet_train-1.2.24 app/helpers/invitation_only_helper.rb
bullet_train-1.2.23 app/helpers/invitation_only_helper.rb
bullet_train-1.2.22 app/helpers/invitation_only_helper.rb
bullet_train-1.2.21 app/helpers/invitation_only_helper.rb
bullet_train-1.2.20 app/helpers/invitation_only_helper.rb
bullet_train-1.2.19 app/helpers/invitation_only_helper.rb
bullet_train-1.2.18 app/helpers/invitation_only_helper.rb
bullet_train-1.2.17 app/helpers/invitation_only_helper.rb
bullet_train-1.2.16 app/helpers/invitation_only_helper.rb
bullet_train-1.2.15 app/helpers/invitation_only_helper.rb
bullet_train-1.2.14 app/helpers/invitation_only_helper.rb
bullet_train-1.2.13 app/helpers/invitation_only_helper.rb
bullet_train-1.2.12 app/helpers/invitation_only_helper.rb
bullet_train-1.2.11 app/helpers/invitation_only_helper.rb
bullet_train-1.2.10 app/helpers/invitation_only_helper.rb
bullet_train-1.2.9 app/helpers/invitation_only_helper.rb
bullet_train-1.2.8 app/helpers/invitation_only_helper.rb