added brands

This commit is contained in:
Edin Dazdarevic
2015-03-28 14:38:15 +01:00
parent 6c7a1b962f
commit 71fbde93de
11 changed files with 35 additions and 5 deletions

View File

@@ -4,7 +4,8 @@ def prepare_items_for_mass_display(items)
:include => [
:unit ,
:multi_media_descriptions ,
:sub_category
:sub_category,
:brand
])
end
@@ -94,4 +95,4 @@ get '/item/item_group/:item_group_id/offset/:offset/limit/:limit' do |item_group
items = ItemGroup.find(item_group_id).all_items(offset, limit)
prepare_items_for_mass_display(items)
end
end