Skip to content

Commit 671ed20

Browse files
committed
個別 Dojo の統計データの表示順序を最新順にした
1 parent 19e749c commit 671ed20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/dojos_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def index
2929
# GET /dojos/:id
3030
def show
3131
@dojo = Dojo.find(params[:id])
32-
@event_histories = @dojo.event_histories.order(:evented_at)
32+
@event_histories = @dojo.event_histories.order(evented_at: :DESC)
3333
.select(:id, :dojo_id, :dojo_name, :service_name, :event_id, :event_url, :participants, :evented_at)
3434

3535
respond_to do |format|

0 commit comments

Comments
 (0)