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.14.0 app/helpers/base_helper.rb
bullet_train-1.13.0 app/helpers/base_helper.rb
bullet_train-1.12.3 app/helpers/base_helper.rb
bullet_train-1.12.2 app/helpers/base_helper.rb
bullet_train-1.12.1 app/helpers/base_helper.rb
bullet_train-1.12.0 app/helpers/base_helper.rb
bullet_train-1.11.0 app/helpers/base_helper.rb
bullet_train-1.10.0 app/helpers/base_helper.rb
bullet_train-1.9.0 app/helpers/base_helper.rb
bullet_train-1.8.5 app/helpers/base_helper.rb
bullet_train-1.8.4 app/helpers/base_helper.rb
bullet_train-1.8.3 app/helpers/base_helper.rb
bullet_train-1.8.2 app/helpers/base_helper.rb
bullet_train-1.8.1 app/helpers/base_helper.rb
bullet_train-1.8.0 app/helpers/base_helper.rb
bullet_train-1.7.23 app/helpers/base_helper.rb
bullet_train-1.7.22 app/helpers/base_helper.rb
bullet_train-1.7.21 app/helpers/base_helper.rb
bullet_train-1.7.20 app/helpers/base_helper.rb
bullet_train-1.7.19 app/helpers/base_helper.rb