spree/spree — pull request #1548 by jdutil (2012-05-16 22:59:14+00:00)
Title: [spree_promo] Explicitly nest promotion classes.

I've found a bug I'm attempting to fix within spree_product_groups. Unfortunately I was unable to run the specs due to:

/spree_product_groups/app/models/spree/promotion/rules/product_decorator.rb:1:in `': uninitialized constant Spree::Promotion::Rules::Product (NameError)

By explicitly nesting the classes and modules the initialization will properly define the classes / modules. This is similar to an issue we ran into with the spree_active_shipping gem described here: https://github.com/spree/spree_active_shipping/pull/25