spree/spree — pull request #3509 by huoxito (2013-08-06 00:16:12+00:00)
Title: Don't load all promos to apply a coupon code

As suggested by @balexand in #3156. The build still looks fine with this patch and it should help stores running with too many promo codes.

@balexand I'd appreciate if you could give more feedback here, like did you run into any trouble after monkey patching your app with this code? do you think we'd have to make any other change? thanks.

ps. 2-0-stable needs the patch as well.