Sha256: cb5546b0f5960bd21773ccae60d756f319304c122f28f7c8adfb05ac49425727
Contents?: true
Size: 686 Bytes
Versions: 13
Compression:
Stored size: 686 Bytes
Contents
module Dorsale module BillingMachine class ApplicationController < ::Dorsale::ApplicationController before_filter :set_common_variables private def euros(*) raise "#euros is not available in BillingMachine, please use #bm_currency instead" end def bm_currency(n) DH.currency(n, BillingMachine.default_currency) end helper_method :euros helper_method :bm_currency def set_common_variables @payment_terms ||= ::Dorsale::BillingMachine::PaymentTerm.all @id_cards ||= ::Dorsale::BillingMachine::IdCard.all @people ||= current_user_scope.people end end end end
Version data entries
13 entries across 13 versions & 1 rubygems