class Omniorder::Import
Public Instance Methods
generate_order(attributes = {})
click to toggle source
Allows the import to control how orders are created e.g. an account could be assigned if system is multi-tennant Use generate not build so as not to conflict with ActiveRecord TODO: Move to Importable?
# File lib/omniorder/import.rb, line 7 def generate_order(attributes = {}) Omniorder.order_type.new({ import: self }.merge(attributes)) end