Commit 5a1883a66b8133550bebbd9d26920f284af5b4ac
1 parent
1f05bbcc
Exists in
staging
and in
4 other branches
HOTSPOT: always generate data files in rails root
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
script/sent_event_report
@@ -4,7 +4,7 @@ require 'net/smtp' | @@ -4,7 +4,7 @@ require 'net/smtp' | ||
4 | 4 | ||
5 | puts 'Iniciando script' | 5 | puts 'Iniciando script' |
6 | 6 | ||
7 | -file = File.open('event.csv', 'w+') | 7 | +file = File.open(File.join(Rails.root,'event.csv'), 'w+') |
8 | 8 | ||
9 | events = Event.all | 9 | events = Event.all |
10 | events.map do |event| | 10 | events.map do |event| |
script/sent_proposal_report
@@ -8,7 +8,7 @@ emails.uniq! | @@ -8,7 +8,7 @@ emails.uniq! | ||
8 | 8 | ||
9 | puts 'Iniciando script' | 9 | puts 'Iniciando script' |
10 | 10 | ||
11 | -file = File.open('data.csv', 'w+') | 11 | +file = File.open(File.join(Rails.root,'data.csv'), 'w+') |
12 | 12 | ||
13 | tasks = ProposalsDiscussionPlugin::ProposalTask.all | 13 | tasks = ProposalsDiscussionPlugin::ProposalTask.all |
14 | count = 0 | 14 | count = 0 |