class MageRecord::OrderItem

order items can be parents / children of other order items (only within the same order)

Public Instance Methods

method_missing(meth, *args, &block) click to toggle source

call associated product’s method

Calls superclass method
# File lib/magerecord/order_item.rb, line 19
def method_missing(meth, *args, &block)
  if product && product.respond_to?(meth)
    product.send(meth)
  else
    # call superclass's method_missing method
    # or risk breaking Ruby's method lookup
    super
  end
end
respond_to?(meth, include_private = false) click to toggle source
Calls superclass method
# File lib/magerecord/order_item.rb, line 30
def respond_to?(meth, include_private = false)
  super || (product && product.respond_to?(meth))
end