Skip to content
Cory Boyd edited this page Jun 2, 2014 · 1 revision

Get a list of Trackers that a Person has followed:

person = Person.find(6)
relations = person.follow_relations
trackers = relations.map(&:item).select { |i| i.is_a?(Tracker) }

Clone this wiki locally