diff options
author | cesartalves <cesartalvez@gmail.com> | 2021-05-05 09:33:45 -0300 |
---|---|---|
committer | cesartalves <cesartalvez@gmail.com> | 2021-05-05 09:37:25 -0300 |
commit | 42caa88a89748767555a9d284cdd7b7c53191dcb (patch) | |
tree | c61253c69bd05288bf0b92f5adf58520af0c8d9c /lib/generators/solidus_subscriptions/install/templates/initializer.rb | |
parent | 9f87d809e339d459aa29c6aa62f3033a7c978ee7 (diff) |
Installment OrderCreator configuration: keep extra attributes inside the OrderCreator class and remove it from the configuration.
Diffstat (limited to 'lib/generators/solidus_subscriptions/install/templates/initializer.rb')
-rw-r--r-- | lib/generators/solidus_subscriptions/install/templates/initializer.rb | 15 |
1 files changed, 7 insertions, 8 deletions
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 |