def find_by_permalink!(permalink)
      result = scoped_by_permalink(permalink).first
      raise ActiveRecord::RecordNotFound.new "Could not find Content for Permalink id=#{permalink.id}" if result.nil?
      result
    end
def find_by_permalink!(permalink)
      result = scoped_by_permalink(permalink).first
      raise ActiveRecord::RecordNotFound.new "Could not find Content for Permalink id=#{permalink.id}" if result.nil?
      result
    end
Finder returning the matching content for a given permalink. Raises an
 ActiveRecord::RecordNotFound error if no match is found or if the
 content_type of the given permalink must match the target model's class