Skip to content

Commit

Permalink
[api] include option_type presentation within option_value_attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
radar committed Oct 14, 2013
1 parent c5e5bbf commit 78b7d52
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion api/app/helpers/spree/api/api_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def image_attributes
end

def option_value_attributes
[:id, :name, :presentation, :option_type_name, :option_type_id]
[:id, :name, :presentation, :option_type_name, :option_type_id, :option_type_presentation]
end

def order_attributes
Expand Down
4 changes: 4 additions & 0 deletions api/app/models/spree/option_value_decorator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@
def option_type_name
option_type.name
end

def option_type_presentation
option_type.presentation
end
end

0 comments on commit 78b7d52

Please sign in to comment.