Sort cards by updated_at in admin
This commit is contained in:
parent
9505e08b28
commit
70f410baa5
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue