Skip to content

Commit

Permalink
Implement HtmlAttachment#extracted_text for indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
evilstreak authored and heathd committed Oct 25, 2013
1 parent 22b8ee2 commit 5e4b0d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/html_attachment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,6 @@ def url(options = {})
end

def extracted_text
Govspeak::Document.new(body).to_text
end
end

0 comments on commit 5e4b0d2

Please sign in to comment.