Commit 81833d032b5a9c2f12ee2ca63775943b49c2369c
1 parent
845b2731
Exists in
master
use base_class method for STI compatibility
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/acts_as_follower/follower_lib.rb
... | ... | @@ -8,7 +8,7 @@ module ActsAsFollower |
8 | 8 | # Retrieves the parent class name if using STI. |
9 | 9 | def parent_class_name(obj) |
10 | 10 | unless parent_classes.include?(obj.class.superclass) |
11 | - return obj.class.superclass.name | |
11 | + return obj.class.base_class.name | |
12 | 12 | end |
13 | 13 | obj.class.name |
14 | 14 | end | ... | ... |