Update attachment_fu to work with rails3.