Skip to content
This repository has been archived by the owner on May 3, 2020. It is now read-only.

Commit

Permalink
fix for error when first report is created
Browse files Browse the repository at this point in the history
  • Loading branch information
BuffaloWill committed Dec 28, 2017
1 parent 439c560 commit f40cd1e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions routes/report.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@
@report.scoring = set_scoring(config_options)
@report.save

# compensate for datamappers oddness
@report1 = get_report(@report.id)

redirect to("/report/#{@report.id}/edit")
end

Expand Down

0 comments on commit f40cd1e

Please sign in to comment.