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

View file

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