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