ar-simple-idmap 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/identity_map/active_record/base.rb +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.4
|
@@ -50,7 +50,7 @@ module ActiveRecord
|
|
50
50
|
(args[0] == :all || args[0] == :first)
|
51
51
|
args.size == 2 && args[1].is_a?(Hash) &&
|
52
52
|
args[1].all?{|key, value| key == :conditions || value.blank?} &&
|
53
|
-
args[1][:conditions].keys == [:id]
|
53
|
+
args[1][:conditions].try(:keys) == [:id]
|
54
54
|
if from_arg0 || from_condition_ids
|
55
55
|
ids = from_arg0 ? args[0] : args[1][:conditions][:id]
|
56
56
|
if ids.is_a?(Array)
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ar-simple-idmap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 4
|
10
|
+
version: 0.1.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Sokolov Yura aka funny_falcon
|