app/helpers/spree/api/api_helpers.rb in spree_api-3.1.14 vs app/helpers/spree/api/api_helpers.rb in spree_api-3.2.0.rc1
- old
+ new
@@ -27,11 +27,12 @@
:property_attributes,
:stock_location_attributes,
:stock_movement_attributes,
:stock_item_attributes,
:promotion_attributes,
- :store_attributes
+ :store_attributes,
+ :tag_attributes
]
mattr_reader *ATTRIBUTES
def required_fields_for(model)
@@ -158,9 +159,11 @@
@@store_attributes = [
:id, :name, :url, :meta_description, :meta_keywords, :seo_title,
:mail_from_address, :default_currency, :code, :default
]
+
+ @@tag_attributes = [:id, :name]
def variant_attributes
if @current_user_roles && @current_user_roles.include?("admin")
@@variant_attributes + [:cost_price]
else