app/controllers/mobile/orders_controller.rb in artfully_ose-1.2.0.pre.23 vs app/controllers/mobile/orders_controller.rb in artfully_ose-1.2.0.pre.24

- old
+ new

@@ -28,11 +28,12 @@ end def index organization = current_user.organizations.find(params[:organization_id]) show = organization.shows.find(params[:show_id]) - orders = show.items.map(&:order).uniq + door_list = DoorList.new(show) + orders = Order.find(door_list.items.collect(&:order_id).uniq) render :json => orders, :each_serializer => OrderSerializer end def show organization = current_user.organizations.find(params[:organization_id]) @@ -53,8 +54,8 @@ # ignore end end end - render :json => order, :serializer => OrderSerializer + render :json => order, :serializer => OrderValidationSerializer end end