Module: Comable

Defined in:
lib/comable/deprecator.rb,
lib/comable/core.rb,
lib/comable/errors.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/variant.rb,
app/models/comable/category.rb,
app/models/comable/shipment.rb,
lib/comable/payment_provider.rb,
app/models/comable/navigation.rb,
app/models/comable/order_item.rb,
app/models/comable/draft_order.rb,
app/models/comable/option_type.rb,
lib/comable/core/configuration.rb,
app/models/comable/option_value.rb,
app/models/comable/order/scopes.rb,
app/mailers/comable/order_mailer.rb,
app/models/comable/shipment_item.rb,
app/models/comable/stock/csvable.rb,
app/models/comable/inventory/unit.rb,
app/models/comable/payment_method.rb,
app/models/comable/stock_location.rb,
lib/comable/payment_provider/base.rb,
app/models/comable/navigation_item.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/inventory/packer.rb,
app/models/comable/order/morrisable.rb,
app/models/comable/inventory/package.rb,
app/models/comable/order/validations.rb,
app/models/concerns/comable/checkout.rb,
app/models/concerns/comable/linkable.rb,
app/models/concerns/comable/sku_item.rb,
app/uploaders/comable/image_uploader.rb,
lib/comable/payment_provider/general.rb,
app/models/comable/inventory/adjuster.rb,
app/models/comable/order/associations.rb,
app/models/comable/order_item/csvable.rb,
app/models/comable/variant/quantifier.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/comable/inventory/coordinator.rb,
app/models/concerns/comable/product/search.rb,
app/models/comable/order/deprecated_methods.rb,
app/controllers/comable/application_controller.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, Inventory, Linkable, Liquidable, PaymentProvider, PermittedAttributes, ProductsHelper, Ransackable, RoleOwner, SkuChoice, SkuItem Classes: Ability, Address, ApplicationController, Category, Deprecator, DraftOrder, Image, ImageUploader, InstallGenerator, Navigation, NavigationItem, OptionType, OptionValue, Order, OrderItem, OrderMailer, Page, Payment, PaymentError, PaymentMethod, Product, Shipment, ShipmentItem, ShipmentMethod, Stock, StockLocation, Store, Theme, Tracker, User, Variant

Class Method Summary collapse

Class Method Details

.app_nameObject



37
38
39
# File 'lib/comable/core.rb', line 37

def app_name
  'Comable'
end

.homepageObject



41
42
43
# File 'lib/comable/core.rb', line 41

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

.licenseObject



45
46
47
# File 'lib/comable/core.rb', line 45

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

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

Yields:

  • (Comable::Config)


27
28
29
# File 'lib/comable/core.rb', line 27

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

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



31
32
33
# File 'lib/comable/core.rb', line 31

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