activerecord 4.1.10.rc1 → 4.1.10.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 +4 -4
- data/lib/active_record/gem_version.rb +1 -1
- data/lib/active_record/validations/uniqueness.rb +3 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 28b680b2590e38a7c7fc1c92cdb35d2e496d35bc
|
4
|
+
data.tar.gz: 80424139f1ec7423e6560e83f769408ee8682d22
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07d716119c34c31408189da8abcbbc140ffd61477aab7c19a75cdd4cc6204faa597281188198fd71883d1e4f1adc5b2be88bed7122f9f13e8f3ac69a45ecb7f0
|
7
|
+
data.tar.gz: e293e8bc13e336461e15d989190b23a183ca617c164b6b60b065cc9708feb537abd59312208a5937900974ab64fc64fea6550bcd869068bba825263e2b95b31f
|
@@ -85,7 +85,9 @@ module ActiveRecord
|
|
85
85
|
# This is basically emulating an Arel::Nodes::Casted
|
86
86
|
column = record.class.columns_hash[scope_item.to_s]
|
87
87
|
quoted_value = record.class.connection.quote(scope_value, column)
|
88
|
-
|
88
|
+
if scope_value
|
89
|
+
node = Arel::Nodes::SqlLiteral.new(quoted_value)
|
90
|
+
end
|
89
91
|
|
90
92
|
relation = relation.and(table[scope_item].eq(node))
|
91
93
|
end
|
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.1.10.
|
4
|
+
version: 4.1.10.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: 2015-02-
|
11
|
+
date: 2015-02-25 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.1.10.
|
19
|
+
version: 4.1.10.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.1.10.
|
26
|
+
version: 4.1.10.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.1.10.
|
33
|
+
version: 4.1.10.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.1.10.
|
40
|
+
version: 4.1.10.rc2
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: arel
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|