module Stall
Provide the common behavior for all models that need to own addresses, for billing and shipping
Allows copying
Allows copying
This class is used as a config wrapper for devise's omniauth providers, allowing to easily configure new and existing providers.
Overrides the `#number_to_currency` rails helper to use the Money currency symbol as the unit when a Money object is passed and no unit is set.
This allows to localize currency formats without messing around with Money custom format which is not integrated with the I18n gem, and rely on rails default way of localizing the currency formats.
Routing mapper override to allow mounting the engine as non-isolated, avoiding issues with routes in templates when switching from the app to the engine
The TotalPricesManager
module allows hadling total prices and VAT totals and managing negative total prices, thus generating a remainder and allowing it to be converted to a credit note later.
Constants
- VERSION
Public Class Methods
# File lib/stall.rb, line 61 def self.config @config ||= Stall::Config.new end
# File lib/stall.rb, line 65 def self.configure yield config end
# File lib/stall.rb, line 57 def self.table_name_prefix 'stall_' end