Commit f53b8ae01701bb8a7e0cc7b3a89c63a00c38339e
Committed by
Tom Cocca
1 parent
2485fa60
Exists in
master
and in
3 other branches
The parent_class_name(self) is not coming up as defined - hence no followers. I …
…simplyfied it by using self.class.to_s . Signed-off-by: Tom Cocca <tom.cocca@gmail.com>
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/acts_as_followable.rb
... | ... | @@ -25,7 +25,7 @@ module ActiveRecord #:nodoc: |
25 | 25 | # Returns the following records. |
26 | 26 | def followers |
27 | 27 | Follow.find(:all, :include => [:follower], :conditions => ["followable_id = ? AND followable_type = ?", |
28 | - self.id, parent_class_name(self)]).collect {|f| f.follower } | |
28 | + self.id, self.class.to_s]).collect {|f| f.follower } | |
29 | 29 | end |
30 | 30 | |
31 | 31 | # Returns true if the current instance is followed by the passed record. | ... | ... |