activerecord 3.0.8.rc2 → 3.0.8.rc4
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.
@@ -30,7 +30,9 @@ module ActiveRecord
|
|
30
30
|
# Associate attributes pointing to owner, quoted.
|
31
31
|
def construct_quoted_owner_attributes(reflection)
|
32
32
|
if as = reflection.options[:as]
|
33
|
-
{ "#{as}_id" => @owner
|
33
|
+
{ "#{as}_id" => @owner.class.quote_value(
|
34
|
+
@owner[reflection.active_record_primary_key],
|
35
|
+
reflection.klass.columns_hash["#{as}_id"]),
|
34
36
|
"#{as}_type" => reflection.klass.quote_value(
|
35
37
|
@owner.class.base_class.name.to_s,
|
36
38
|
reflection.klass.columns_hash["#{as}_type"]) }
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 15424061
|
5
5
|
prerelease: 6
|
6
6
|
segments:
|
7
7
|
- 3
|
8
8
|
- 0
|
9
9
|
- 8
|
10
10
|
- rc
|
11
|
-
-
|
12
|
-
version: 3.0.8.
|
11
|
+
- 4
|
12
|
+
version: 3.0.8.rc4
|
13
13
|
platform: ruby
|
14
14
|
authors:
|
15
15
|
- David Heinemeier Hansson
|
@@ -17,7 +17,7 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2011-05-
|
20
|
+
date: 2011-05-31 00:00:00 Z
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
23
23
|
name: activesupport
|
@@ -27,14 +27,14 @@ dependencies:
|
|
27
27
|
requirements:
|
28
28
|
- - "="
|
29
29
|
- !ruby/object:Gem::Version
|
30
|
-
hash:
|
30
|
+
hash: 15424061
|
31
31
|
segments:
|
32
32
|
- 3
|
33
33
|
- 0
|
34
34
|
- 8
|
35
35
|
- rc
|
36
|
-
-
|
37
|
-
version: 3.0.8.
|
36
|
+
- 4
|
37
|
+
version: 3.0.8.rc4
|
38
38
|
type: :runtime
|
39
39
|
version_requirements: *id001
|
40
40
|
- !ruby/object:Gem::Dependency
|
@@ -45,14 +45,14 @@ dependencies:
|
|
45
45
|
requirements:
|
46
46
|
- - "="
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
hash:
|
48
|
+
hash: 15424061
|
49
49
|
segments:
|
50
50
|
- 3
|
51
51
|
- 0
|
52
52
|
- 8
|
53
53
|
- rc
|
54
|
-
-
|
55
|
-
version: 3.0.8.
|
54
|
+
- 4
|
55
|
+
version: 3.0.8.rc4
|
56
56
|
type: :runtime
|
57
57
|
version_requirements: *id002
|
58
58
|
- !ruby/object:Gem::Dependency
|