Sha256: 52220de91cf40e439bc4ceb95f714318b4c3dae486b244997996d5b5a7cceefd

Contents?: true

Size: 275 Bytes

Versions: 166

Compression:

Stored size: 275 Bytes

Contents

module BaseHelper
  # TODO This is for the billing package to override, but I feel like there has got to be a better way to do this.
  def hide_team_resource_menus?
    if billing_enabled?
      current_team.needs_billing_subscription?
    else
      false
    end
  end
end

Version data entries

166 entries across 166 versions & 1 rubygems

Version Path
bullet_train-1.4.7 app/helpers/base_helper.rb
bullet_train-1.4.6 app/helpers/base_helper.rb
bullet_train-1.4.5 app/helpers/base_helper.rb
bullet_train-1.4.4 app/helpers/base_helper.rb
bullet_train-1.4.3 app/helpers/base_helper.rb
bullet_train-1.4.2 app/helpers/base_helper.rb
bullet_train-1.4.1 app/helpers/base_helper.rb
bullet_train-1.4.0 app/helpers/base_helper.rb
bullet_train-1.3.25 app/helpers/base_helper.rb
bullet_train-1.3.24 app/helpers/base_helper.rb
bullet_train-1.3.23 app/helpers/base_helper.rb
bullet_train-1.3.22 app/helpers/base_helper.rb
bullet_train-1.3.21 app/helpers/base_helper.rb
bullet_train-1.3.20 app/helpers/base_helper.rb
bullet_train-1.3.19 app/helpers/base_helper.rb
bullet_train-1.3.18 app/helpers/base_helper.rb
bullet_train-1.3.17 app/helpers/base_helper.rb
bullet_train-1.3.16 app/helpers/base_helper.rb
bullet_train-1.3.15 app/helpers/base_helper.rb
bullet_train-1.3.14 app/helpers/base_helper.rb