spree-contrib / spree_multi_vendor

Spree marketplace extension. Create your own marketplace on top of Spree Commerce
https://spreecommerce.org/marketplace-ecommerce/
BSD 3-Clause "New" or "Revised" License
142 stars 135 forks source link

Apply `SpreeMultiVendor` namespace to `*decorator.rb` files #147

Closed hoshinotsuyoshi closed 4 years ago

hoshinotsuyoshi commented 4 years ago

To avoid module name duplication.

Fix https://github.com/spree-contrib/spree_multi_vendor/issues/146 .

$ git grep -l Decorator | xargs gsed -i -r 's/ Spree::(.+?Decorator\b)/ SpreeMultiVendor::Spree::\1/'

As an example, the mailchimp plugin avoids namespace collision issues in a similar way. ex: https://github.com/spree-contrib/spree_mailchimp_ecommerce/blob/ec776f0a75797667d59ff20a31719d89bc19a51e/app/models/spree_mailchimp_ecommerce/spree/order_decorator.rb#L1-L3