module SimpleCart::ActsAsSimpleCart::ClassMethods

Public Instance Methods

acts_as_product() click to toggle source
# File lib/simple_cart/acts_as_simple_cart.rb, line 6
def acts_as_product
  class_eval do
    has_many :order_items, class_name: 'SimpleCart::OrderItem', as: :itemable
  end
end