comee_core 0.1.94 → 0.1.96

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: db75b46b401cdda584ec5886547ee102f030a4402c6e938c2bcda1253e4cab86
4
- data.tar.gz: 022e7c8dc59cc3d7e9ad0a41d9ff2ce7a81323d77bd9a07089a4814777de533b
3
+ metadata.gz: '09b9b7bd296564a11541c134cdcea60a4e948cfb0a6635c19c069c62a1f86eda'
4
+ data.tar.gz: 386ef21d5cdc2d86207be07dc0afd4fae421c859058d6d74083edf45bd0c0b68
5
5
  SHA512:
6
- metadata.gz: 810c66b318292a3800bb05dee9133d984e0e45990315818828e72e0f3a7d147cabc44f7e7b229ca2d2c8b79ff3e17e10e0974a79df02d031848105b78097a672
7
- data.tar.gz: eb8a84315a930ef469fc798f2373205218519b721fb8136efa738e1a40e217f0e3680384458460f557e2eb560752d43dd5edf78a3c8655c3a80a1e489babb8dd
6
+ metadata.gz: f7c5fbfb2d819845e756a023cb93aa23c0c1ea0f21a0ee6b229c4592e458872c732b24fe1386c58284a9f4ee47ac4078e49dbfb05b887d0e2717e4d36402e8bd
7
+ data.tar.gz: e6f301d17d9704b52f429f371748da640a53ca0d5b20ff31be22b0ab47c11400edc5cdf1fc635144ab39e6520f8d5369039ae58e5b14b3ce1a5ac110d3b24c73
@@ -3,9 +3,19 @@ module Comee
3
3
  class ShipmentItemsController < ApplicationController
4
4
  include Common
5
5
 
6
+ def index
7
+ super do
8
+ [
9
+ ShipmentItem.includes(sales_order_item: [sales_order: :client]).all,
10
+ include: ["sales_order_item.sales_order.client"]
11
+ ]
12
+ end
13
+ end
14
+
6
15
  def filter
7
16
  @shipment_item = Comee::Core::ShipmentItem.ransack(params[:q]).result
8
- render json: {success: true, data: serialize(@shipment_item)}
17
+ options = {include: ["sales_order_item.sales_order.client"]}
18
+ render json: {success: true, data: serialize(@shipment_item, options)}
9
19
  end
10
20
 
11
21
  def filter_for_client
@@ -1,5 +1,5 @@
1
1
  module Comee
2
2
  module Core
3
- VERSION = "0.1.94".freeze
3
+ VERSION = "0.1.96".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: comee_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.94
4
+ version: 0.1.96
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henock L.