diff --git a/app/decorators/controllers/solidus_reviews/spree/products_controller_decorator.rb b/app/patches/controllers/solidus_reviews/spree/products_controller_patch.rb similarity index 86% rename from app/decorators/controllers/solidus_reviews/spree/products_controller_decorator.rb rename to app/patches/controllers/solidus_reviews/spree/products_controller_patch.rb index cb65e40..fccbc95 100644 --- a/app/decorators/controllers/solidus_reviews/spree/products_controller_decorator.rb +++ b/app/patches/controllers/solidus_reviews/spree/products_controller_patch.rb @@ -2,7 +2,7 @@ module SolidusReviews module Spree - module ProductsControllerDecorator + module ProductsControllerPatch def self.prepended(base) base.class_eval do helper ::Spree::ReviewsHelper diff --git a/app/decorators/helpers/solidus_reviews/spree/api/api_helpers_decorator.rb b/app/patches/helpers/solidus_reviews/spree/api/api_helpers_patch.rb similarity index 96% rename from app/decorators/helpers/solidus_reviews/spree/api/api_helpers_decorator.rb rename to app/patches/helpers/solidus_reviews/spree/api/api_helpers_patch.rb index 7578e2f..dd4ee1b 100644 --- a/app/decorators/helpers/solidus_reviews/spree/api/api_helpers_decorator.rb +++ b/app/patches/helpers/solidus_reviews/spree/api/api_helpers_patch.rb @@ -3,7 +3,7 @@ module SolidusReviews module Spree module Api - module ApiHelpersDecorator + module ApiHelpersPatch def self.prepended(base) base.module_eval do @@review_attributes = [ diff --git a/app/decorators/models/solidus_reviews/spree/product_decorator.rb b/app/patches/models/solidus_reviews/spree/product_patch.rb similarity index 96% rename from app/decorators/models/solidus_reviews/spree/product_decorator.rb rename to app/patches/models/solidus_reviews/spree/product_patch.rb index 35b5fcf..0eadb52 100644 --- a/app/decorators/models/solidus_reviews/spree/product_decorator.rb +++ b/app/patches/models/solidus_reviews/spree/product_patch.rb @@ -2,7 +2,7 @@ module SolidusReviews module Spree - module ProductDecorator + module ProductPatch def self.prepended(base) base.class_eval do has_many :reviews diff --git a/app/decorators/models/solidus_reviews/spree/user_decorator.rb b/app/patches/models/solidus_reviews/spree/user_patch.rb similarity index 91% rename from app/decorators/models/solidus_reviews/spree/user_decorator.rb rename to app/patches/models/solidus_reviews/spree/user_patch.rb index 7d274b3..cf0e227 100644 --- a/app/decorators/models/solidus_reviews/spree/user_decorator.rb +++ b/app/patches/models/solidus_reviews/spree/user_patch.rb @@ -2,7 +2,7 @@ module SolidusReviews module Spree - module UserDecorator + module UserPatch def self.prepended(base) base.class_eval do has_many :reviews, class_name: 'Spree::Review'