tramway-api 1.8.6.3 → 1.8.6.4
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: 28de923a74f0d7e402961d4a15e743c3644613c6916df046015f4dfef77b0022
|
4
|
+
data.tar.gz: d9e47c9f6a6272765e241082266ac45249dc91581e5348214d9d7e84d9869f29
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f18ab5bec7ffc6f68239a22c03ed02ecdb8e14918a68c29faf18253d4dcda2c7491aaabc4fb89a6d8673bf3b4d2da998f19def3cb3e57a72c25acfc516356b04
|
7
|
+
data.tar.gz: 21cfd0df88415a40be0add47f7387243f9d3cba349a9bd8ad40a17de26139ff317ba206cf334e590e31a79ec1c52790be5eb289984336b52540de1df4274d993
|
@@ -25,7 +25,7 @@ module Tramway
|
|
25
25
|
|
26
26
|
def record
|
27
27
|
if params[:key].present?
|
28
|
-
if Tramway::Api.other_id_methods_of(model: model_class).include? params[:key]
|
28
|
+
if Tramway::Api.other_id_methods_of(model: model_class).include? params[:key].to_sym
|
29
29
|
@record = model_class.find_by! params[:key] => params[:id] if params[:id].present?
|
30
30
|
end
|
31
31
|
else
|
data/lib/tramway/api/version.rb
CHANGED