cosmetics

This commit is contained in:
2015-05-27 15:28:09 +02:00
parent dcd8c13e57
commit 544049fdc7
8 changed files with 30 additions and 41 deletions
@@ -22,6 +22,7 @@ module Users
def show
list = List.find(params[:id])
render json: {}, status: :not_found and return unless list.present? && Array.wrap(list.user_ids).include?(current_user.id)
[list].include_relation(supplier: {product_categories: :products}, orders: :product_orders) # table also when it is a real array :)
render json: list, serializer: UserExtendedListSerializer
end