noosfero | Fixes relations namespaces in Orders and Suppliers plugin (!1110)
Bráulio Bhavamitra
gitlab at mg.gitlab.com
Fri Feb 10 11:22:20 BRST 2017
New comment for Merge Request !1110 on plugins/orders/models/orders_plugin/item.rb:
https://gitlab.com/noosfero/noosfero/merge_requests/1110#note_23162441
> has_one :to_product, through: :product
> has_many :sources_supplier_products, through: :product
> has_one :sources_supplier_product, through: :product
> - has_many :supplier_products, through: :product
> + has_many :supplier_products, through: :product, :class_name => "ProductsPlugin::Product"
this can be multiple subtypes so the `class_name` shouldn't apply
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20170210/ce6df2cc/attachment-0001.html>
More information about the Noosfero-dev
mailing list