ref: master
plugins/people_block/lib/friends_block.rb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
class FriendsBlock < PeopleBlockBase def self.description c_('Friends') end def help _('Clicking a friend takes you to his/her homepage') end def default_title n_('{#} friend', '{#} friends', profile_count) end def profiles owner.friends.no_templates end def suggestions owner.suggested_profiles.of_person.enabled.limit(3).includes(:suggestion) end def self.expire_on { :profile => [:profile] } end end |