activerecord 4.0.1.rc1 → 4.0.1.rc2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of activerecord might be problematic. Click here for more details.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6919ab97fb92f2377a746c834142424176551399
|
4
|
+
data.tar.gz: 121e17a8cc03ee15bbff871653a609b212666805
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60b11e93002526738fae389b4b7c441094f453fa03add683ff76b682bffc9e1193199958f2a9751fbe829a29118b8efa2bce1f217f65abdf2e45fae83cd8cbea
|
7
|
+
data.tar.gz: 79f53d379cfbaf7ecdc69d2b761208ce22e5ca905a0db60c113707ddd0048f1f28c9a48cd103dfab5f90e7819e9a69e84980736349a51909c4d5c470c4b630d7
|
@@ -889,6 +889,13 @@ module ActiveRecord
|
|
889
889
|
def build_where(opts, other = [])
|
890
890
|
case opts
|
891
891
|
when String, Array
|
892
|
+
#TODO: Remove duplication with: /activerecord/lib/active_record/sanitization.rb:113
|
893
|
+
values = Hash === other.first ? other.first.values : other
|
894
|
+
|
895
|
+
values.grep(ActiveRecord::Relation) do |rel|
|
896
|
+
self.bind_values += rel.bind_values
|
897
|
+
end
|
898
|
+
|
892
899
|
[@klass.send(:sanitize_sql, other.empty? ? opts : ([opts] + other))]
|
893
900
|
when Hash
|
894
901
|
attributes = @klass.send(:expand_hash_conditions_for_aggregates, opts)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.1.
|
4
|
+
version: 4.0.1.rc2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Heinemeier Hansson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-10-
|
11
|
+
date: 2013-10-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 4.0.1.
|
19
|
+
version: 4.0.1.rc2
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 4.0.1.
|
26
|
+
version: 4.0.1.rc2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: activemodel
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 4.0.1.
|
33
|
+
version: 4.0.1.rc2
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 4.0.1.
|
40
|
+
version: 4.0.1.rc2
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: arel
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|