Sha256: cd429bdd9861d4d79288df93bcd8b90113ec4c59d48e119441d7b4324bb5e7e1

Contents?: true

Size: 526 Bytes

Versions: 18

Compression:

Stored size: 526 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)
    @id_cards      ||= policy_scope(::Dorsale::BillingMachine::IdCard)
    @people        ||= policy_scope(::Dorsale::CustomerVault::Person)
  end

end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
dorsale-3.8.1 app/controllers/dorsale/billing_machine/application_controller.rb
dorsale-3.8.0 app/controllers/dorsale/billing_machine/application_controller.rb
dorsale-3.7.8 app/controllers/dorsale/billing_machine/application_controller.rb
dorsale-3.7.7 app/controllers/dorsale/billing_machine/application_controller.rb
dorsale-3.7.6 app/controllers/dorsale/billing_machine/application_controller.rb
dorsale-3.7.5 app/controllers/dorsale/billing_machine/application_controller.rb
dorsale-3.7.4 app/controllers/dorsale/billing_machine/application_controller.rb
dorsale-3.7.2 app/controllers/dorsale/billing_machine/application_controller.rb
dorsale-3.7.1 app/controllers/dorsale/billing_machine/application_controller.rb
dorsale-3.7.0 app/controllers/dorsale/billing_machine/application_controller.rb
dorsale-3.6.1 app/controllers/dorsale/billing_machine/application_controller.rb
dorsale-3.6.0 app/controllers/dorsale/billing_machine/application_controller.rb
dorsale-3.5.2 app/controllers/dorsale/billing_machine/application_controller.rb
dorsale-3.5.1 app/controllers/dorsale/billing_machine/application_controller.rb
dorsale-3.5.0 app/controllers/dorsale/billing_machine/application_controller.rb
dorsale-3.4.0 app/controllers/dorsale/billing_machine/application_controller.rb
dorsale-3.3.0 app/controllers/dorsale/billing_machine/application_controller.rb
dorsale-3.2.0 app/controllers/dorsale/billing_machine/application_controller.rb