summaryrefslogtreecommitdiff
path: root/lib/solidus_subscriptions/permitted_attributes.rb
diff options
context:
space:
mode:
authorAlessandro Desantis <desa.alessandro@gmail.com>2020-09-24 14:05:05 +0200
committerAlessandro Desantis <desa.alessandro@gmail.com>2020-09-24 14:48:37 +0200
commit19cd3c9e95d880b55a3a67fb4c3258becee31920 (patch)
treee0ff2e2645a8b8bca209fd8b68cb389b41686008 /lib/solidus_subscriptions/permitted_attributes.rb
parent9ab99ab24fc36805eac3c1fefef85aafe90cf7b8 (diff)
Use `.configure`/`.configuration` standard for config management
Diffstat (limited to 'lib/solidus_subscriptions/permitted_attributes.rb')
-rw-r--r--lib/solidus_subscriptions/permitted_attributes.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/solidus_subscriptions/permitted_attributes.rb b/lib/solidus_subscriptions/permitted_attributes.rb
index d1ae5a1..f689e90 100644
--- a/lib/solidus_subscriptions/permitted_attributes.rb
+++ b/lib/solidus_subscriptions/permitted_attributes.rb
@@ -5,11 +5,11 @@ module SolidusSubscriptions
module PermittedAttributes
class << self
def subscription_line_item_attributes
- [Config.subscription_line_item_attributes]
+ [SolidusSubscriptions.configuration.subscription_line_item_attributes]
end
def subscription_attributes
- Config.subscription_attributes | [
+ SolidusSubscriptions.configuration.subscription_attributes | [
line_items_attributes: (subscription_line_item_attributes | [:id] - [:subscribable_id]),
]
end