jsonapi-query_builder 0.1.5.pre → 0.1.6.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jsonapi/query_builder/base_query.rb +4 -4
- data/lib/jsonapi/query_builder/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: edcba945298b8eadf8c9eb952ee3fed13ba3c8c822afa15dea5126102b689584
|
4
|
+
data.tar.gz: acb2b63e334270e21874c4985467c29953faa2abda3af6065aac26b0963767af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d80d0e5ac1d07327c1f8737eb5b52439022914238a650ee926175c9f2e3b6f1bf0abecb15812e3e8f8241f8d607a5c2a8b9094169a1ba2e869363a4ecc588a0e
|
7
|
+
data.tar.gz: a17154de4293836988b82af81fef9e2a925f9a153d5ba1ae161178e75ad7b6571a0c5f38b2f0f3b96661f001ec3442191b70cdc85754489ebbd80cee78a4bb21
|
@@ -29,15 +29,15 @@ module Jsonapi
|
|
29
29
|
end
|
30
30
|
|
31
31
|
def find(id)
|
32
|
-
find_by id: id
|
32
|
+
find_by! id: id
|
33
33
|
end
|
34
34
|
|
35
35
|
def record
|
36
|
-
find_by id: params[:id]
|
36
|
+
find_by! id: params[:id]
|
37
37
|
end
|
38
38
|
|
39
|
-
def find_by(**kwargs)
|
40
|
-
add_includes(collection).find_by(kwargs)
|
39
|
+
def find_by!(**kwargs)
|
40
|
+
add_includes(collection).find_by!(kwargs)
|
41
41
|
end
|
42
42
|
end
|
43
43
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jsonapi-query_builder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6.pre
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jure Cindro
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-09-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|