lib/nexmo_developer/app/services/translator/smartling/api/upload_file.rb in station-0.0.101 vs lib/nexmo_developer/app/services/translator/smartling/api/upload_file.rb in station-0.0.102

- old
+ new

@@ -51,11 +51,13 @@ end def file @file ||= begin file = Tempfile.new - file.write Nexmo::Markdown::Pipelines::Smartling::Preprocessor.new.call( - File.read("#{Rails.configuration.docs_base_path}/_documentation/#{I18n.default_locale}/#{@translation_request.file_uri}") + file.write( + Nexmo::Markdown::Pipelines::Smartling::Preprocessor.new.call( + File.read(@translation_request.file_path) + ) ) file.rewind file.close file end