1 2 3 4 5 6 7 8 9 10 11
require 'delegate' class SidebarPostDecorator < SimpleDelegator def initialize(post) super(post) end def body super.truncate(64) end end