ishapi 0.1.8.172 → 0.1.8.175

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7b51cdb462ddeb86fe0fd4e10c6b3b7e9dfea2fffef44b773f2d1748a1a3b8d8
4
- data.tar.gz: 1f5c3705a6b9eb7828dee1296113d222058d9015665d4f183429e72714beb3e3
3
+ metadata.gz: 07a4b4e0d9bd0969eeda9a1fe9589212a70bd5c8661e0302d9a1ba31a3f5137b
4
+ data.tar.gz: 476d698e3c15ce28c33eae87a072f77853e3ca48008de339fd9aacf9b4e7e37c
5
5
  SHA512:
6
- metadata.gz: a43ea617b94979fada76da3479dea3e62efce08e61484e2e17c32687de0f83c0a9df5e9fdc7ec79beba43e5453ff61f91405c654477815b99b793a8443e85035
7
- data.tar.gz: de56a014a64631b435557e85dbdca01fc979d52ca66230e84a5f806c95dde9c938067ca29e2d304b5251759298580a190a8031d970798a42654510ee9adc5a68
6
+ metadata.gz: af2e387db139204820f396cfa0976223a2cdfd63c1c9a9fe5e43e4f69fb742d4ac99b1b7e2716c229bec19203a259dcd3badde894e669b7030377a1b86264e74
7
+ data.tar.gz: ed0a356af8d052cab676e33e71d4efbb1a281acc98f76b57543e9ccdd8b26156ab7ddc4e5ee04cb65311aeb19b155e15d1b67eb635b446e746fe3c83c56279a5
@@ -5,6 +5,7 @@
5
5
  json.n_newsitems newsitems.count
6
6
  json.newsitems do
7
7
  json.array! newsitems do |item|
8
+ json.id item.id.to_s
8
9
  json.name item.name
9
10
  json.created_at item.created_at
10
11
  json.updated_at item.updated_at
@@ -59,7 +60,7 @@ json.newsitems do
59
60
  end
60
61
  end
61
62
 
62
- if item.video_id
63
+ if item.video
63
64
  json.id item.video_id.to_s
64
65
  # @TODO: why this relation is so weird here?!
65
66
  video = Video.unscoped.find( item.video_id )
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ishapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8.172
4
+ version: 0.1.8.175
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-19 00:00:00.000000000 Z
11
+ date: 2022-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -268,7 +268,6 @@ files:
268
268
  - app/controllers/ishapi/order_items_controller.rb
269
269
  - app/controllers/ishapi/orders_controller.rb
270
270
  - app/controllers/ishapi/payments_controller.rb
271
- - app/controllers/ishapi/products_controller.rb
272
271
  - app/controllers/ishapi/reports_controller.rb
273
272
  - app/controllers/ishapi/sites_controller.rb
274
273
  - app/controllers/ishapi/stock_watches_controller.rb
@@ -1,12 +0,0 @@
1
- require_dependency "ishapi/application_controller"
2
- module Ishapi
3
- class ProductsController < UnrestrictedController
4
-
5
- def show
6
- @product = ::CoTailors::Product.where( :kind => params[:kind] ).first
7
- authorize! :show, @product
8
- end
9
-
10
- end
11
- end
12
-