Skip to content
Browse files

Ruby 1.9.2: StringIO no longer has #path

  • Loading branch information...
1 parent 2841a14 commit 3f54f3100b6c262776ad324bd649ff268600e280 @jeremy jeremy committed Nov 13, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_dispatch/http/request.rb
View
2 actionpack/lib/action_dispatch/http/request.rb
@@ -489,7 +489,7 @@ module UploadedFile
def self.extended(object)
object.class_eval do
attr_accessor :original_path, :content_type
- alias_method :local_path, :path
+ alias_method :local_path, :path if method_defined?(:path)
end
end

0 comments on commit 3f54f31

Please sign in to comment.
Something went wrong with that request. Please try again.