Skip to content

Instantly share code, notes, and snippets.

@BrianJakovich
Last active August 12, 2016 23:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BrianJakovich/baf781240379a85fd332bce4f429980a to your computer and use it in GitHub Desktop.
Save BrianJakovich/baf781240379a85fd332bce4f429980a to your computer and use it in GitHub Desktop.
[0,1,2,3,4].each do |number|
ReportCheck.where(report_id: @report.id).each do |report_check|
ReportCheck.find(report_check.id).update_attributes(score: number)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment