Help me understand why only OrderController#edit calls associate_user<>and not
It is logical (to me) that for many user-based promotion rules, we need the
order to know about who the current user is to be able to determine
promotion eligibility when adding items to the cart. Without setting the
order's user before firing spree.order.contents_changed<>,
user-based promotion rules yield unexpected results.

If there is some resistance to modifying the controller, perhaps it would
be best to allow Promotion#eligible?<>to pass in spree_current_user by using the

This seems to be how some of the built in promotion rules were designed, ready
to accept options<>,
but they never get passed!

(Cross post from

You received this message because you are subscribed to the Google Groups "Spree" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
For more options, visit

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupspree-user @
postedFeb 19, '13 at 2:44p
activeFeb 19, '13 at 2:44p

1 user in discussion

Brian Buchalter: 1 post



site design / logo © 2022 Grokbase