Module: Stall
- Extended by:
- ActiveSupport::Autoload
- Defined in:
- lib/stall/addressable.rb,
lib/stall.rb,
lib/stall/utils.rb,
lib/stall/config.rb,
lib/stall/engine.rb,
lib/stall/routes.rb,
lib/stall/payable.rb,
lib/stall/version.rb,
lib/stall/checkout.rb,
lib/stall/payments.rb,
lib/stall/sellable.rb,
lib/stall/shipping.rb,
lib/stall/priceable.rb,
lib/stall/cart_helper.rb,
app/models/stall/models.rb,
lib/stall/carts_cleaner.rb,
lib/stall/checkout/step.rb,
lib/stall/checkout/wizard.rb,
lib/stall/payments/config.rb,
lib/stall/shipping/config.rb,
lib/stall/payments/gateway.rb,
lib/stall/utils/config_dsl.rb,
app/models/stall/models/cart.rb,
lib/stall/checkout/step_form.rb,
app/mailers/stall/base_mailer.rb,
lib/stall/shipping/calculator.rb,
app/mailers/stall/admin_mailer.rb,
lib/stall/payments/urls_config.rb,
app/models/stall/models/address.rb,
app/models/stall/models/payment.rb,
app/services/stall/base_service.rb,
lib/stall/rails/currency_helper.rb,
app/models/stall/models/customer.rb,
app/models/stall/models/shipment.rb,
app/helpers/stall/checkout_helper.rb,
app/helpers/stall/payments_helper.rb,
app/mailers/stall/customer_mailer.rb,
app/models/stall/models/line_item.rb,
app/models/stall/models/adjustment.rb,
app/helpers/stall/add_to_cart_helper.rb,
app/helpers/stall/application_helper.rb,
app/models/stall/models/product_list.rb,
app/controllers/stall/carts_controller.rb,
app/models/stall/models/payment_method.rb,
app/services/stall/add_to_cart_service.rb,
app/services/stall/cart_update_service.rb,
app/models/stall/models/shipping_method.rb,
lib/stall/checkout/payment_checkout_step.rb,
app/controllers/stall/payments_controller.rb,
app/models/stall/models/address_ownership.rb,
app/controllers/stall/checkouts_controller.rb,
lib/generators/stall/model/model_generator.rb,
app/controllers/stall/line_items_controller.rb,
lib/stall/shipping/free_shipping_calculator.rb,
app/controllers/stall/application_controller.rb,
lib/stall/checkout/informations_checkout_step.rb,
lib/generators/stall/install/install_generator.rb,
lib/generators/stall/service/service_generator.rb,
app/controllers/stall/checkout/steps_controller.rb,
app/services/stall/payment_notification_service.rb,
lib/stall/checkout/payment_method_checkout_step.rb,
lib/stall/checkout/payment_return_checkout_step.rb,
lib/stall/checkout/shipping_method_checkout_step.rb,
lib/generators/stall/checkout/step/step_generator.rb,
app/services/stall/shipping_fee_calculator_service.rb,
lib/stall/shipping/country_weight_table_calculator.rb,
lib/stall/payments/fake_gateway_payment_notification.rb,
lib/generators/stall/checkout/wizard/wizard_generator.rb,
lib/generators/stall/shipping/calculator/calculator_generator.rb
Overview
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.
Defined Under Namespace
Modules: AddToCartHelper, Addressable, ApplicationHelper, CartHelper, Checkout, CheckoutHelper, CurrencyHelper, Models, Payable, Payments, PaymentsHelper, Priceable, Sellable, Shipping, Utils Classes: AddToCartService, AdminMailer, ApplicationController, BaseMailer, BaseService, CartUpdateService, CartsCleaner, CartsController, CheckoutsController, Config, CustomerMailer, Engine, InstallGenerator, LineItemsController, ModelGenerator, PaymentNotificationService, PaymentsController, Routes, ServiceGenerator, ShippingFeeCalculatorService
Constant Summary collapse
- VERSION =
"0.1.2"
Class Method Summary collapse
Class Method Details
.config ⇒ Object
35 36 37 |
# File 'lib/stall.rb', line 35 def self.config @config ||= Stall::Config.new end |
.configure {|config| ... } ⇒ Object
39 40 41 |
# File 'lib/stall.rb', line 39 def self.configure yield config end |
.table_name_prefix ⇒ Object
31 32 33 |
# File 'lib/stall.rb', line 31 def self.table_name_prefix 'stall_' end |