Skip to content

Commit

Permalink
close #236 fix rubocop linter warning
Browse files Browse the repository at this point in the history
  • Loading branch information
theachoem committed Jan 16, 2025
1 parent 597f4a0 commit 1242852
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 18 deletions.
4 changes: 1 addition & 3 deletions app/models/vpago/adjustment_decorator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,4 @@ def set_handle_by
end
end

unless Spree::Adjustment.included_modules.include?(Vpago::AdjustmentDecorator)
Spree::Adjustment.prepend(Vpago::AdjustmentDecorator)
end
Spree::Adjustment.prepend(Vpago::AdjustmentDecorator) unless Spree::Adjustment.included_modules.include?(Vpago::AdjustmentDecorator)
4 changes: 1 addition & 3 deletions app/models/vpago/promotion_action_decorator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,4 @@ def self.prepended(base)
end
end

unless Spree::PromotionAction.included_modules.include?(Vpago::PromotionActionDecorator)
Spree::PromotionAction.prepend(Vpago::PromotionActionDecorator)
end
Spree::PromotionAction.prepend(Vpago::PromotionActionDecorator) unless Spree::PromotionAction.included_modules.include?(Vpago::PromotionActionDecorator)
4 changes: 1 addition & 3 deletions app/models/vpago/shipment_decorator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,4 @@ def vendor_adjustment_total
end
end

unless Spree::Shipment.included_modules.include?(Vpago::ShipmentDecorator)
Spree::Shipment.prepend(Vpago::ShipmentDecorator)
end
Spree::Shipment.prepend(Vpago::ShipmentDecorator) unless Spree::Shipment.included_modules.include?(Vpago::ShipmentDecorator)
4 changes: 1 addition & 3 deletions app/models/vpago/shipping_method_decorator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,4 @@ def self.prepended(base)
end
end

unless Spree::ShippingMethod.included_modules.include?(Vpago::ShippingMethodDecorator)
Spree::ShippingMethod.prepend(Vpago::ShippingMethodDecorator)
end
Spree::ShippingMethod.prepend(Vpago::ShippingMethodDecorator) unless Spree::ShippingMethod.included_modules.include?(Vpago::ShippingMethodDecorator)
4 changes: 1 addition & 3 deletions app/models/vpago/shipping_rate_decorator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,4 @@ def set_handle_by
end
end

unless Spree::ShippingRate.included_modules.include?(Vpago::ShippingRateDecorator)
Spree::ShippingRate.prepend(Vpago::ShippingRateDecorator)
end
Spree::ShippingRate.prepend(Vpago::ShippingRateDecorator) unless Spree::ShippingRate.included_modules.include?(Vpago::ShippingRateDecorator)
4 changes: 1 addition & 3 deletions app/models/vpago/tax_category_decorator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,4 @@ def self.prepended(base)
end
end

unless Spree::TaxCategory.included_modules.include?(Vpago::TaxCategoryDecorator)
Spree::TaxCategory.prepend(Vpago::TaxCategoryDecorator)
end
Spree::TaxCategory.prepend(Vpago::TaxCategoryDecorator) unless Spree::TaxCategory.included_modules.include?(Vpago::TaxCategoryDecorator)

0 comments on commit 1242852

Please sign in to comment.