Save progress
This commit is contained in:
@@ -11,6 +11,7 @@ module Users
|
||||
#EMBER
|
||||
def current
|
||||
list = current_user.active_list
|
||||
render json: {}, status: :not_found and return unless list.present?
|
||||
[list].include_relation(supplier: {product_categories: :products}, orders: :product_orders) # table also when it is a real array :)
|
||||
render json: json_response(not_present: true) and return unless list.present?
|
||||
render json: list, serializer: UserExtendedListSerializer
|
||||
|
||||
Reference in New Issue
Block a user