Module: ShopBunny

Defined in:
lib/shop_bunny.rb,
lib/shop_bunny/engine.rb,
lib/shop_bunny/version.rb,
lib/shop_bunny/cart_module.rb,
lib/shop_bunny/controller_helpers.rb,
lib/shop_bunny/cart_controller_module.rb,
lib/generators/install/install_generator.rb,
app/controllers/shop_bunny/carts_controller.rb,
app/controllers/shop_bunny/application_controller.rb

Defined Under Namespace

Modules: CartControllerModule, CartModule, ControllerHelpers Classes: ApplicationController, CartItem, CartsController, Coupon, CouponUse, Engine, InstallGenerator, ShippingCostCalculator

Constant Summary collapse

VERSION =
"0.8.8"
@@item_model_class_name =
'Item'
@@shipping_cost_calculator =
ShopBunny::ShippingCostCalculator

Class Method Summary collapse

Class Method Details

.setup {|_self| ... } ⇒ Object

This is the default way to setup ShopBunny and is used in the initializer which gets generated by ‘rails generate shop_bunny:install`

Yields:

  • (_self)

Yield Parameters:

  • _self (ShopBunny)

    the object that the method was called on



24
25
26
# File 'lib/shop_bunny.rb', line 24

def self.setup
  yield self
end

.table_name_prefixObject



18
19
20
# File 'lib/shop_bunny.rb', line 18

def self.table_name_prefix
  ''
end