1
0
Fork 0

Merge branch 'atomaka/feature/card-by-updated' into 'master'

Sort cards by updated_at in admin

Cards that were recently updated, have a higher chance to be updated again because of the bouncing around between screens.  Put those at the top.

See merge request !21
This commit is contained in:
Andrew Tomaka 2015-11-04 11:47:33 -05:00
commit 2f2e4b2381
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ class Admin::CardsController < Admin::BaseController
after_action :verify_authorized
def index
@cards = Card.includes(:character).all
@cards = Card.includes(:character).all.order(updated_at: :desc)
authorize Card
end