cirandas.net

ref: master

plugins/recent_activities/lib/ext/action_tracker_model.rb


 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