This is happening because the cartons association in Spree::Shipment uses uniq instead of distinct, and uniq returns an array as of Rails 5.1.
The following monkey-patch fixes the problem:
Spree::Shipment.class_eval do
has_many :cartons, -> { distinct }, through: :inventory_units
end
Spree::Shipment#cartons in any Solidus appAn AR collection proxy should be returned.
NoMethodError: undefined method `extensions' for []:Array
Did you mean? extend
from /Users/aldesantis/.rvm/gems/ruby-2.5.0@myproject/gems/activerecord-5.1.5/lib/active_record/associations/association.rb:140:in `extensions'
Solidus Version: 2.3
Extensions in use:
I can do this? I want start in the open source world.
Fixed by #2653
Most helpful comment
I can do this? I want start in the open source world.