Fix SWW on search.
Whitespace.
Fix Deprecated/Modified condition lambda.
Fix Private method spaghetti.
Memoize client, handle nil.
Validate presence of supplier_order's offer_id.
reference should be an accessible attribute. Follow Rails 4 syntax for find_or_create_by.
Follow Rails 4 find_or_create_by syntax.