lib/myjohndeere/file_resource.rb in myjohndeere-0.0.10 vs lib/myjohndeere/file_resource.rb in myjohndeere-0.0.11

- old
+ new

@@ -35,13 +35,13 @@ return send_create(access_token, body, {map_layer_id: map_layer_id}) end def self.upload_file(access_token, file_resource_id, file_path) - raise ArgumentError.new("You must pass an existing file") if !File.exists?(file_path) + raise ArgumentError.new("You must pass an existing file") if !::File.exists?(file_path) raise ArgumentError.new("You must pass a valid file_resource_id") if file_resource_id.nil? - File.open(file_path, "rb:UTF-8") do |f| + ::File.open(file_path, "rb:UTF-8") do |f| body = f.read() response = access_token.execute_request(:put, "#{self.base_jd_resource}/#{file_resource_id}", body: body, headers: { \ No newline at end of file