Permalink
Browse files

Merge pull request #51 from skord/master

Issue #50 Typo
  • Loading branch information...
2 parents 7e390e3 + 8ab714a commit 4386ac55900dd527ebfe800ccdfe990f1bc88eca David Celis committed Aug 28, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/recommendable/acts_as_recommended_to.rb
@@ -374,9 +374,9 @@ def ignored
# @return [ActiveRecord::Relation] an ActiveRecord::Relation of records that self has ignored
def ignored_for klass
ids = if klass.sti?
- ignores.joins(manual_join(klass, 'ignore')).map(&:ignoreable_id)
+ ignores.joins(manual_join(klass, 'ignore')).map(&:ignorable_id)
else
- ignores.where(:ignoreable_type => klass.to_s).map(&:ignoreable_id)
+ ignores.where(:ignorable_type => klass.to_s).map(&:ignorable_id)
end
klass.where('ID IN (?)', ids)

0 comments on commit 4386ac5

Please sign in to comment.