Module: Comable

Defined in:
lib/comable/deprecator.rb,
lib/comable_core.rb,
lib/comable/deprecator.rb,
app/models/comable/page.rb,
app/models/comable/user.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/theme.rb,
app/models/comable/ability.rb,
app/models/comable/address.rb,
app/models/comable/payment.rb,
app/models/comable/product.rb,
app/models/comable/tracker.rb,
app/models/comable/category.rb,
app/models/comable/shipment.rb,
lib/comable/payment_provider.rb,
app/models/comable/order_item.rb,
lib/comable/core/configuration.rb,
app/models/comable/order/scopes.rb,
app/mailers/comable/order_mailer.rb,
app/models/comable/stock/csvable.rb,
app/models/comable/payment_method.rb,
lib/comable/payment_provider/base.rb,
app/models/comable/order/callbacks.rb,
app/models/comable/product/csvable.rb,
app/models/comable/shipment_method.rb,
app/helpers/comable/products_helper.rb,
app/models/comable/order/morrisable.rb,
app/models/comable/order/validations.rb,
app/models/concerns/comable/checkout.rb,
app/models/concerns/comable/sku_item.rb,
lib/comable/payment_provider/general.rb,
app/models/comable/order/associations.rb,
app/models/comable/order_item/csvable.rb,
app/helpers/comable/application_helper.rb,
app/models/concerns/comable/cart_owner.rb,
app/models/concerns/comable/importable.rb,
app/models/concerns/comable/liquidable.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, Importable, Liquidable, PaymentProvider, PermittedAttributes, ProductsHelper, Ransackable, RoleOwner, SkuChoice, SkuItem Classes: Ability, Address, Category, Deprecator, Image, InstallGenerator, Order, OrderItem, OrderMailer, Page, Payment, PaymentMethod, Product, Shipment, ShipmentMethod, Stock, Store, Theme, Tracker, User

Class Method Summary collapse

Class Method Details

.app_nameObject



36
37
38
# File 'lib/comable_core.rb', line 36

def app_name
  'Comable'
end

.homepageObject



40
41
42
# File 'lib/comable_core.rb', line 40

def homepage
  'https://github.com/appirits/comable#comable'
end

.licenseObject



44
45
46
# File 'lib/comable_core.rb', line 44

def license
  'https://github.com/appirits/comable/blob/master/MIT-LICENSE'
end

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

Yields:

  • (Comable::Config)


26
27
28
# File 'lib/comable_core.rb', line 26

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

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



30
31
32
# File 'lib/comable_core.rb', line 30

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