class-table-inheritance 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/class-table-inheritance.rb +1 -1
- metadata +4 -4
@@ -15,7 +15,7 @@ class ActiveRecord::Base
|
|
15
15
|
super_classes.map do |item|
|
16
16
|
if !item.subtype.nil? && !item.subtype.blank?
|
17
17
|
inherits_type = Object.const_get(item.subtype.to_s)
|
18
|
-
inherits_type.send(:find,
|
18
|
+
inherits_type.send(:find, item.id)
|
19
19
|
else
|
20
20
|
super_classes
|
21
21
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: class-table-inheritance
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 1.1.
|
9
|
+
- 1
|
10
|
+
version: 1.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Bruno Frank Cordeiro
|
@@ -15,7 +15,7 @@ autorequire: name
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-
|
18
|
+
date: 2010-12-01 00:00:00 -02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|