activerecord-bixformer 0.3.9 → 0.3.10

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
  SHA1:
3
- metadata.gz: c2044fd5fafccb188c65c012caa4f5146b96c8ef
4
- data.tar.gz: 4377856ad54d04b0effbf9ed70a25b0307ae45df
3
+ metadata.gz: 06d5ab39dfcb860914026975b5d9418dbbb6a117
4
+ data.tar.gz: 50d3b1bd924cfa110b72fe9a28d9a1786fd5b78a
5
5
  SHA512:
6
- metadata.gz: a561ecbde53c37ed51aca882e86e524b322f298efc9a0609b719e3f2c8aacc4c115bcccf3958207ee56920917c235c3641d755e1718add94ae759a9f22f2f2a9
7
- data.tar.gz: 961f0a16e9d034bf1849d601b20c9992b55bdddb090c62f8e2600c4a86ea80875a79daf1697b5d2906868589e1872eeddfd47dded6613a8f5da0cb22292540f7
6
+ metadata.gz: 8afbb90d65a314967ae67dedb8aacef4d1e6d3552d469bf4b080ee971268ac0f9b38846e6a0052969544b2829eda3a2067a193b7b222c20cd0d9d8c6bbb8a53b
7
+ data.tar.gz: 610b36b3f7660c350fe9342a5d4985137197c77112c86bf8cef56aeab93c4c7f1a5a49467635d251a6749e59b77c9f98bf833912795235fb9e4cd18d6637fb46
@@ -50,6 +50,8 @@ module ActiveRecord
50
50
  { find_by => value }
51
51
  end
52
52
 
53
+ return nil unless condition
54
+
53
55
  foreign_record = if scope.is_a?(::Proc)
54
56
  self.instance_exec(&scope).__send__(finder, condition)
55
57
  else
@@ -1,5 +1,5 @@
1
1
  module ActiveRecord
2
2
  module Bixformer
3
- VERSION = "0.3.9"
3
+ VERSION = "0.3.10"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-bixformer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.9
4
+ version: 0.3.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hiroaki Otsu