Skip to content

Commit

Permalink
change open file way
Browse files Browse the repository at this point in the history
  • Loading branch information
chebyte committed Aug 13, 2011
1 parent e40bcb4 commit 86dee3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sunspot/rich_document.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def add(connection)

@fields.each do |f|
if f.name.to_s.include?("_attachment") and f.value.present?
data = f.value.data
data = open(f.value).read rescue ""
params['fmap.content'] = f.name
else
param_name = "literal.#{f.name.to_s}"
Expand Down

0 comments on commit 86dee3c

Please sign in to comment.