def render_summary
      summary = nil
      max_chars = (self.display_configuration.try {|h| h["summary_max_chars"]}) || 280



      if self.snippets.length > 0 && !(self.display_configuration.try {|h| h["prefer_abstract_as_summary"]} && self.abstract)
        summary = self.snippets.first
        self.snippets.slice(1, self.snippets.length).each do |snippet|
          summary += ' '.html_safe + snippet if (summary.length + snippet.length) <= max_chars
        end
      else
        summary = _h.bento_truncate( self.abstract, :length => max_chars )
      end

      summary
    end
def render_summary
      summary = nil
      max_chars = (self.display_configuration.try {|h| h["summary_max_chars"]}) || 280



      if self.snippets.length > 0 && !(self.display_configuration.try {|h| h["prefer_abstract_as_summary"]} && self.abstract)
        summary = self.snippets.first
        self.snippets.slice(1, self.snippets.length).each do |snippet|
          summary += ' '.html_safe + snippet if (summary.length + snippet.length) <= max_chars
        end
      else
        summary = _h.bento_truncate( self.abstract, :length => max_chars )
      end

      summary
    end
A summary. If config.for_dispaly.prefer_snippets_as_summary is set to true
 then prefers that, otherwise abstract.

 Truncates for display.