Module: Coletivo::Models::Recommendable::InstanceMethods
- Defined in:
- lib/coletivo/models/recommendable.rb
Instance Method Summary collapse
Instance Method Details
#similarity_with(other_id, options = {}) ⇒ Object
69 70 71 72 73 74 75 |
# File 'lib/coletivo/models/recommendable.rb', line 69 def similarity_with(other_id, = {}) p = [:preferences] || self.class.load_preferences_for_recommendation(self) Coletivo::Similarity::Engine\ .similarity_between(self.id, other_id, p, ) end |