Sha256: 4af943c57928462106fbb9b5aaef9fc6a29ee1ec03f6ae6a8cf40a08245b0fe4
Contents?: true
Size: 663 Bytes
Versions: 1
Compression:
Stored size: 663 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:) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dorsale-4.0.0 | app/controllers/dorsale/billing_machine/application_controller.rb |