Sha256: c220419976b464e336bfd64b4a5fbe47fa171742c7ba1bf2cca9c2812cf6bbba

Contents?: true

Size: 676 Bytes

Versions: 31

Compression:

Stored size: 676 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

  def email_permitted_params
    [
      :to,
      :subject,
      :body,
    ]
  end

  def email_params
    params.fetch(:email, {})
      .permit(email_permitted_params)
      .merge(current_user: current_user)
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
dorsale-3.20.0 app/controllers/dorsale/billing_machine/application_controller.rb
dorsale-3.19.1 app/controllers/dorsale/billing_machine/application_controller.rb
dorsale-3.19.0 app/controllers/dorsale/billing_machine/application_controller.rb
dorsale-3.18.0 app/controllers/dorsale/billing_machine/application_controller.rb
dorsale-3.17.0 app/controllers/dorsale/billing_machine/application_controller.rb
dorsale-3.16.0 app/controllers/dorsale/billing_machine/application_controller.rb
dorsale-3.15.0 app/controllers/dorsale/billing_machine/application_controller.rb
dorsale-3.14.11 app/controllers/dorsale/billing_machine/application_controller.rb
dorsale-3.14.10 app/controllers/dorsale/billing_machine/application_controller.rb
dorsale-3.14.9 app/controllers/dorsale/billing_machine/application_controller.rb
dorsale-3.14.8 app/controllers/dorsale/billing_machine/application_controller.rb
dorsale-3.14.7 app/controllers/dorsale/billing_machine/application_controller.rb
dorsale-3.14.6 app/controllers/dorsale/billing_machine/application_controller.rb
dorsale-3.14.5 app/controllers/dorsale/billing_machine/application_controller.rb
dorsale-3.14.4 app/controllers/dorsale/billing_machine/application_controller.rb
dorsale-3.14.3 app/controllers/dorsale/billing_machine/application_controller.rb
dorsale-3.14.2 app/controllers/dorsale/billing_machine/application_controller.rb
dorsale-3.14.1 app/controllers/dorsale/billing_machine/application_controller.rb
dorsale-3.14.0 app/controllers/dorsale/billing_machine/application_controller.rb
dorsale-3.13.0 app/controllers/dorsale/billing_machine/application_controller.rb