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: e7f1b8dfe3e44248a5689bd7a38f15457cfdb51a5e86c57ced95eff20b177310
4
- data.tar.gz: 6fd69e46c891249e0f9177b596b17242f209c4d2fc38eab9419dd208b64b1de2
3
+ metadata.gz: 28de923a74f0d7e402961d4a15e743c3644613c6916df046015f4dfef77b0022
4
+ data.tar.gz: d9e47c9f6a6272765e241082266ac45249dc91581e5348214d9d7e84d9869f29
5
5
  SHA512:
6
- metadata.gz: 0addb5574a3f3dd5308d94c2a7e023c41d864bf909119e34d258b0339245f94155105ea9605b406e32f9edb85ce2c9e15d0e30f7dfca2f6a401378a4314c020d
7
- data.tar.gz: 23d22cdb67d958d36c39a80c1794b202eae925931553f4910637074024bb601429d516d0f498911be45d605454cf5879039ef72ddfbf8432ba57e5cdf6aa1a77
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tramway
4
4
  module Api
5
- VERSION = '1.8.6.3'
5
+ VERSION = '1.8.6.4'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tramway-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.6.3
4
+ version: 1.8.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov