module Coletivo::Models::Recommendable::InstanceMethods
Public Instance Methods
similarity_with(other_id, options = {})
click to toggle source
# File lib/coletivo/models/recommendable.rb, line 69 def similarity_with(other_id, options = {}) p = options[:preferences] || self.class.load_preferences_for_recommendation(self) Coletivo::Similarity::Engine\ .similarity_between(self.id, other_id, p, options) end