Permalink
Please
sign in to comment.
Browse files
Adding ability to sort by most recent comment (or edit). Fixes #470
- Loading branch information...
Showing
with
111 additions
and 15 deletions.
- +37 −12 app/controllers/home_controller.rb
- +2 −0 app/helpers/dispatch_helper.rb
- +8 −0 app/helpers/home_helper.rb
- +5 −1 app/models/paper.rb
- +1 −1 app/views/home/reviews.html.erb
- +6 −0 db/migrate/20181213123534_add_last_active_at_to_papers.rb
- +3 −1 db/schema.rb
- +44 −0 lib/tasks/utils.rake
- +5 −0 spec/controllers/dispatch_controller_spec.rb
@@ -0,0 +1,6 @@ | |||
class AddLastActiveAtToPapers < ActiveRecord::Migration[5.1] | |||
def change | |||
add_column :papers, :last_activity, :datetime | |||
add_index :papers, :last_activity | |||
end | |||
end |
0 comments on commit
31b0d23