ntq_tools 0.5.1 → 0.5.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31adc13868bf234dece4f45a91e3f163ef8c9a72fe433a67e890d34efce043e2
|
4
|
+
data.tar.gz: b88556d68a75735690128006616bb37e30fec9ae3bbdf39640a3b90b1281d616
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5810e19e2b39d8002f5281d242d6dac226fdb20b3b5ad48fb01c51108ee3ea77fdcaf7ee3d6dd5e4431853941f876723e0f95877374937f0d1adc97b380ae17b
|
7
|
+
data.tar.gz: c7183009c3c6d2bbe3a784c2bdf13bbb71524a4b6824c29117e2e82c5492fd9f13bb20b0a6731228f5ed7ec7702f6f38a47855936d154fea87b43f4583bc1706
|
@@ -242,7 +242,7 @@ module #{context_name}
|
|
242
242
|
class Search#{class_name}
|
243
243
|
include Interactor::Organizer
|
244
244
|
|
245
|
-
organize Get#{
|
245
|
+
organize Get#{plural_name.camelcase}, PaginateRecords
|
246
246
|
end
|
247
247
|
end
|
248
248
|
FILE
|
@@ -269,7 +269,7 @@ end
|
|
269
269
|
argument :per_page, Integer, required: false
|
270
270
|
end
|
271
271
|
def #{plural_name}(search: {}, page: 1, per_page: 25)
|
272
|
-
ctx = ::#{plural_name.camelcase}::Search#{
|
272
|
+
ctx = ::#{plural_name.camelcase}::Search#{plural_name.camelcase}.call(search: search, pagination_params: { page: page, per_page: per_page })
|
273
273
|
{
|
274
274
|
#{plural_name}: ctx.records,
|
275
275
|
pagination: ctx.pagination
|
data/lib/ntq_tools/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ntq_tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-10-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|