Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
9 lines (8 sloc) 182 Bytes
Spree::Product.class_eval do
def users_also_bought
graphed.users_also_bought(limit: 3).map(&:in_spree)
end
def graphed
Recs::Product.from_spree_product self
end
end
You can’t perform that action at this time.