Skip to content

Commit

Permalink
Fixed #excerpt to call #to_s on result of content method, so that com…
Browse files Browse the repository at this point in the history
…posed_of attributes are supported

Signed-off-by: Snax Fauna <evan+fauna@cloudbur.st>
  • Loading branch information
tomstuart authored and Snax Fauna committed Feb 2, 2009
1 parent ce24461 commit 4140ee6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ultrasphinx/search.rb
Expand Up @@ -388,7 +388,7 @@ def excerpt
# Fetch the actual field contents
docs = results_with_content_methods.map do |result, methods|
methods.map do |method|
method and strip_bogus_characters(result.send(method)) or ""
method and strip_bogus_characters(result.send(method).to_s) or ""
end
end.flatten

Expand Down

0 comments on commit 4140ee6

Please sign in to comment.