You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here's the new Technoweenie::AttachmentFu::InstanceMethods.temp_path method code that nails down this problem:
def temp_path
p = temp_paths.first
if p.is_a?(ActionDispatch::Http::UploadedFile) # Rails 3.0.3 compatability fix
p.tempfile.path
else
p.respond_to?(:path) ? p.path : p.to_s
end
end
It appears, that attachment_fu expected temp_paths.first to be a File, but with Rails 3.0.3 it turns out to be an ctionDispatch::Http::UploadedFile, which is wrapped around a file and won't provide 'path' accessor directly.
The text was updated successfully, but these errors were encountered:
Here's the new Technoweenie::AttachmentFu::InstanceMethods.temp_path method code that nails down this problem:
It appears, that attachment_fu expected temp_paths.first to be a File, but with Rails 3.0.3 it turns out to be an ctionDispatch::Http::UploadedFile, which is wrapped around a file and won't provide 'path' accessor directly.
The text was updated successfully, but these errors were encountered: