action_tracker_model.rb 266 Bytes Edit Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 require_dependency 'action_tracker_model' class ActionTracker::Record def label case self.target.class.name when 'Event' 'events' when 'Community' 'communities' when 'Friendship' 'people' else 'posts' end end end