You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This can successfully load rails console and rails server. There are
many, many problems still. The idea is this won't change anything under
rails 2.3, it's all backwards compatible.
closes CNVS-4711
test plan: `touch RAILS3` in your Canvas Rails.root directory. The run
`bundle update` and verify that you get rails 3 installed. Run `bundle
exec rails c` to load console or `bundle exec rails s` to start a
webrick server. You can login, though the dashboard currently breaks.
Also jammit isn't working yet.
But more importantly, Rails 2.3 should still work same as ever. All
tests should pass, and a basic regression sanity check would be good too.
Change-Id: Idd6f35de88adde84cd2db3a650f44b71bd6e9684
Reviewed-on: https://gerrit.instructure.com/18453
Reviewed-by: Brian Palmer <[email protected]>
Tested-by: Jenkins <[email protected]>
QA-Review: Clare Hetherington <[email protected]>
Product-Review: Bracken Mosbacker <[email protected]>
Copy file name to clipboardexpand all lines: app/models/submission.rb
+11-10
Original file line number
Diff line number
Diff line change
@@ -78,25 +78,26 @@ class Submission < ActiveRecord::Base
78
78
}
79
79
}
80
80
81
-
named_scope:needs_grading,:conditions=><<-SQL
82
-
submissions.submission_type IS NOT NULL
83
-
AND (submissions.workflow_state = 'pending_review'
84
-
OR (submissions.workflow_state = 'submitted'
85
-
AND (submissions.score IS NULL OR NOT submissions.grade_matches_current_submission)
86
-
)
87
-
)
88
-
SQL
89
-
90
81
named_scope:for_course,lambda{ |course|
91
82
{:conditions=>["submissions.assignment_id IN (SELECT assignments.id FROM assignments WHERE assignments.context_id = ? AND assignments.context_type = 'Course')",course.id]}
0 commit comments