Skip to content

Commit

Permalink
Mod report.save
Browse files Browse the repository at this point in the history
  • Loading branch information
David Troy committed Nov 4, 2008
1 parent 816b02f commit 3e2d209
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/reports_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def save_iphone_report(info)
reporter = IphoneReporter.update_or_create(info[:reporter])
polling_place = PollingPlace.match_or_create(info[:polling_place][:name], reporter.location)
report = reporter.reports.create(info[:report].merge(:polling_place => polling_place, :latlon => info[:reporter][:latlon]))
report.reload
report.save
if audiofile = params[:uploaded]
fn = "#{AUDIO_UPLOAD_PATH}/#{report.uniqueid}.caf"
File.open(fn, 'w') { |f| f.write audiofile.read }
Expand Down

0 comments on commit 3e2d209

Please sign in to comment.