You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'
System configuration
Solidus Version: 2.3
Extensions in use:
solidus_affirm
solidus_auth_devise
solidus_comments
solidus_gateway
solidus_paypal_braintree
solidus_product_assembly
solidus_redirector
solidus_related_products
solidus_reviews
solidus_sale_prices
solidus_sendwithus
solidus_sitemap
solidus_social
solidus_static_content
spree_paypal_express
solidus_trackers
The text was updated successfully, but these errors were encountered:
This is happening because the
cartons
association inSpree::Shipment
usesuniq
instead ofdistinct
, anduniq
returns an array as of Rails 5.1.The following monkey-patch fixes the problem:
Steps to reproduce
Spree::Shipment#cartons
in any Solidus appExpected behavior
An AR collection proxy should be returned.
Actual behavior
System configuration
Solidus Version: 2.3
Extensions in use:
The text was updated successfully, but these errors were encountered: