From 42caa88a89748767555a9d284cdd7b7c53191dcb Mon Sep 17 00:00:00 2001 From: cesartalves Date: Wed, 5 May 2021 09:33:45 -0300 Subject: Installment OrderCreator configuration: keep extra attributes inside the OrderCreator class and remove it from the configuration. --- .../install/templates/initializer.rb | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'lib/generators/solidus_subscriptions/install/templates/initializer.rb') diff --git a/lib/generators/solidus_subscriptions/install/templates/initializer.rb b/lib/generators/solidus_subscriptions/install/templates/initializer.rb index 0abefc9..de1d081 100644 --- a/lib/generators/solidus_subscriptions/install/templates/initializer.rb +++ b/lib/generators/solidus_subscriptions/install/templates/initializer.rb @@ -99,15 +99,14 @@ SolidusSubscriptions.configure do |config| # ==================================== Custom Order Creation ===================================== # - # This settings allows the customization of the creation of each Installment Order and / or - # adding additional attributes to the Order + # This settings allows the customization of the creation of each Installment Order by means of + # providing a class that can be switched / inherited # - # config.order_creation_class = 'SolidusSubscriptions::OrderCreator' # - # this class is initialized and called on the creation of the Order for each Subscription Installment - # along with a customizable hash of extra attributes that can also be configured, like below: - # config.order_creation_extra_attributes = { channel: 'subscriptions' } + # the order_creator_class is initialized and called on the creation of the Order for each Subscription + # Installment. + # If you want to add simple extra attributes to the Order (such as a channel), that can be done by + # overriding the `extra_attributes` method on a subclass # - # - # config.order_creation_extra_attributes = { } + # config.order_creator_class = 'SolidusSubscriptions::OrderCreator' end -- cgit v1.2.3