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