Module: Comable

Defined in:
lib/comable/deprecator.rb,
lib/comable_core.rb,
lib/comable/errors.rb,
lib/comable/deprecator.rb,
lib/comable/core/engine.rb,
app/models/comable/image.rb,
app/models/comable/order.rb,
app/models/comable/stock.rb,
app/models/comable/store.rb,
app/models/comable/ability.rb,
app/models/comable/address.rb,
app/models/comable/product.rb,
app/models/comable/category.rb,
app/models/comable/customer.rb,
lib/comable/payment_provider.rb,
lib/comable/core/configuration.rb,
app/models/comable/order_detail.rb,
app/mailers/comable/order_mailer.rb,
app/models/comable/payment_method.rb,
lib/comable/payment_provider/base.rb,
app/models/comable/shipment_method.rb,
app/helpers/comable/products_helper.rb,
app/models/comable/order/morrisable.rb,
app/models/concerns/comable/checkout.rb,
app/models/concerns/comable/sku_item.rb,
lib/comable/payment_provider/general.rb,
app/helpers/comable/application_helper.rb,
app/models/concerns/comable/cart_owner.rb,
app/models/concerns/comable/role_owner.rb,
app/models/concerns/comable/sku_choice.rb,
app/models/concerns/comable/ransackable.rb,
app/models/concerns/comable/product/search.rb,
lib/generators/comable/install/install_generator.rb,
app/controllers/concerns/comable/permitted_attributes.rb

Overview

TODO: Deprecated itself!

Defined Under Namespace

Modules: ApplicationHelper, CartOwner, Checkout, Core, PaymentProvider, PermittedAttributes, ProductsHelper, Ransackable, RoleOwner, SkuChoice, SkuItem Classes: Ability, Address, Category, Customer, Deprecator, Image, InstallGenerator, InvalidOrder, Order, OrderDetail, OrderMailer, PaymentMethod, Product, ShipmentMethod, Stock, Store

Class Method Summary collapse

Class Method Details

.setup {|Comable::Config| ... } ⇒ Object

Yields:

  • (Comable::Config)


19
20
21
# File 'lib/comable_core.rb', line 19

def setup(&_)
  yield Comable::Config
end

.translate(key, options = {}) ⇒ Object Also known as: t



23
24
25
# File 'lib/comable_core.rb', line 23

def translate(key, options = {})
  I18n.translate("comable.#{key}", options)
end