From 249fd96f9becda8c022c0435d04c8af07cc6818d Mon Sep 17 00:00:00 2001 From: Georg Gadinger Date: Fri, 31 Mar 2017 23:31:54 +0200 Subject: [PATCH] (Lisp) --- lib/exporter.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/exporter.rb b/lib/exporter.rb index 7d3dda30..49db2ad9 100644 --- a/lib/exporter.rb +++ b/lib/exporter.rb @@ -82,7 +82,7 @@ class Exporter File.open target_file, 'wb' do |f| f.binmode data = if url.start_with?('/system') - File.read(Rails.root.join('public', url) + File.read(Rails.root.join('public', url)) else HTTParty.get(url).parsed_response end @@ -98,7 +98,7 @@ class Exporter File.open target_file, 'wb' do |f| f.binmode data = if url.start_with?('/system') - File.read(Rails.root.join('public', url) + File.read(Rails.root.join('public', url)) else HTTParty.get(url).parsed_response end