app/models/supplier.rb in spree_suppliers-1.0.2 vs app/models/supplier.rb in spree_suppliers-1.0.3
- old
+ new
@@ -1,8 +1,8 @@
class Supplier < ActiveRecord::Base
has_many :images, :as => :viewable, :order => :position, :dependent => :destroy
accepts_nested_attributes_for :images
- has_one :user
+ belongs_to :user
has_many :supplier_invoices
has_and_belongs_to_many :taxons
has_many :products
end