Closed huangdengpan closed 6 years ago
@sdb1228 Do you know how to fix it ?
Hi @huangdengpan! I can't reproduce this issue locally. Please see getting help for support. Thanks!
@omarkhan Ehh, I cannot visit google service from China.... I hope you can give me some advise.
When I tried to visite https://asjk.canvaslms.net/courses/1/enroll_users it shows error 500. The other pages work well.
Thank you!
@huangdengpan it sounds like you're running the master branch of Canvas (since that deprecation being an actual exception was just merged a few days ago), and also you likely have custom changes to Canvas (since all instances of this were already changed to the new behavior in the core canvas codebase). You should do exactly what the message says - change your code to call saved_change_to_<attribute>?
instead of <attribute>_changed?
. This is a deprecation from Rails 5.1, because the behavior changes in Rails 5.2.
@ccutrer Great! I am running the master branch of 20170327. I am going to update rails or reinstall the sytem to be release branch. Thank you so much!
When I add people to a course, it shows an error:
Error reports as below:
The behavior of
attribute_changed?
inside of after callbacks will be changing in the next version of Rails. The new return value will reflect the behavior of calling the method aftersave
returned (e.g. the opposite of what it returns now). To maintain the current behavior, usesaved_change_to_attribute?
instead.Thank you!