You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: news_feed.rb
    path of file: ./repos/enju_leaf/app/models
    
    the code of the file until where you have to start completion: class NewsFeed < ApplicationRecord
  default_scope { order("news_feeds.position") }
  belongs_to :lib
    
  def content
    if body
    # tDiary の RSS をパースした際に to_s が空になる
    # rss = RSS::Parser.parse(feed)
    # rss.to_s
    # => ""
    # if rss.nil?
      begin
        rss = RSS::Parser.parse(body)
      rescue RSS::InvalidRSSError
        rss = RSS::Parser.parse(body, false)
      rescue RSS::NotWellFormedError, TypeError
        nil
      end