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:
commit
2f2e4b2381
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue