NZOI / nztrain

The NZOI online judge and training site written in Ruby
18 stars 13 forks source link

Fix /file_attachments page #232

Closed Holmes98 closed 10 months ago

Holmes98 commented 10 months ago

Model.scoped was deprecated in favour of Model.all in Rails 4.0 [1], and removed in Rails 4.1 [2].

[1] https://github.com/rails/rails/blob/v4.0.13/activerecord/CHANGELOG.md?plain=1#L2698-L2714 [2] https://github.com/rails/rails/blob/v4.1.16/activerecord/CHANGELOG.md?plain=1#L2338