user ember progress

This commit is contained in:
2014-03-26 17:48:54 +01:00
parent 4e75c72097
commit 6af7dc74af
19 changed files with 129 additions and 35 deletions
+12
View File
@@ -0,0 +1,12 @@
module Users
class ListsController < Users::ApplicationController
#EMBER
def current
list = current_user.active_list
render json: json_response(not_present: true) and return unless list.present?
render json: {
list: list.serialized_with_status_join_requests_and_supplier_counters,
}.merge(ActiveModel::ArraySerializer.new(list.supplier.product_categories, each_serializer: ProductCategorySerializer, root: :product_categories).as_json)
end
end
end