Sha256: 44a3321f6e49ab0eb493d2228e8fd6b05f5d4b5fcf7b238cb140cbe9b77968ef

Contents?: true

Size: 454 Bytes

Versions: 4

Compression:

Stored size: 454 Bytes

Contents

class Dorsale::BillingMachine::ApplicationController < ::Dorsale::ApplicationController
  before_action :set_common_variables

  private

  def euros(*)
    raise "#euros is not available in BillingMachine, please use #bm_currency instead"
  end

  helper_method :euros

  def set_common_variables
    @payment_terms ||= policy_scope(::Dorsale::BillingMachine::PaymentTerm)
    @people        ||= policy_scope(::Dorsale::CustomerVault::Person)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dorsale-3.9.3 app/controllers/dorsale/billing_machine/application_controller.rb
dorsale-3.9.2 app/controllers/dorsale/billing_machine/application_controller.rb
dorsale-3.9.1 app/controllers/dorsale/billing_machine/application_controller.rb
dorsale-3.9.0 app/controllers/dorsale/billing_machine/application_controller.rb