profile_list_block.rb 280 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 class ProfileListBlock < Block settings_items :limit, :default => 10 def self.description _('A block that displays random profiles') end def content profiles = self.profiles lambda do profiles.map {|item| profile_image_link(item) } end end end