Permalink
Browse files

cwninja: A typo it would seem... this would be wacky if used.

  • Loading branch information...
1 parent 312a8f7 commit 2fea9d46109fa46d8bf082e2f67474cdd9ed2326 @maccman maccman committed Mar 31, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/acts_as_recommendable.rb
@@ -193,7 +193,7 @@ def self.similar_items(item, options)
else
cached_dataset = Rails.cache.read("aar_#{options[:on]}_dataset")
logger.warn 'ActsRecommendable has an empty dataset - rebuild it' unless cached_dataset
- rankings = cached_dataset && cached_dataset[self.id]
+ rankings = cached_dataset && cached_dataset[item.id]
end
else
users, prefs = self.inverted_matrix(options)

0 comments on commit 2fea9d4

Please sign in to comment.