diff options
author | Brendan Deere <brendan.g.deere@gmail.com> | 2016-12-23 09:38:07 -0800 |
---|---|---|
committer | Brendan Deere <brendan@stembolt.com> | 2017-01-12 14:17:47 -0800 |
commit | e40f34b8f2fd413ec583fb8effee0aec599f71de (patch) | |
tree | b5c13759bce67cf4b94bdadb6fb9eccd834c786c /lib/solidus_subscriptions | |
parent | fd5d70e159cf458f6151d96d561ae67345cdde72 (diff) |
Subscription ship_address can be updated
The api allows subscription shipping addresses to be updated as a nested
parameter
Diffstat (limited to 'lib/solidus_subscriptions')
-rw-r--r-- | lib/solidus_subscriptions/config.rb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/solidus_subscriptions/config.rb b/lib/solidus_subscriptions/config.rb index 3b6f714..f0e3d88 100644 --- a/lib/solidus_subscriptions/config.rb +++ b/lib/solidus_subscriptions/config.rb @@ -73,7 +73,7 @@ module SolidusSubscriptions # :subscribable_id # ] # ``` - + # # This configuration also easily allows the gem to be customized to track # more information on the subcriptions line items. mattr_accessor(:subscription_line_item_attributes) do @@ -88,6 +88,11 @@ module SolidusSubscriptions # SolidusSubscriptions::Subscription attributes which are allowed to # be updated from user data - mattr_accessor(:subscription_attributes) { [:actionable_date] } + mattr_accessor(:subscription_attributes) do + [ + :actionable_date, + shipping_address_attributes: Spree::PermittedAttributes.address_attributes + ] + end end end |