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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 07a4b4e0d9bd0969eeda9a1fe9589212a70bd5c8661e0302d9a1ba31a3f5137b
|
4
|
+
data.tar.gz: 476d698e3c15ce28c33eae87a072f77853e3ca48008de339fd9aacf9b4e7e37c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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-
|
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
|
-
|