docbrown/app/controllers/internal/webhook_endpoints_controller.rb
Michael Kohl a4dadfb728
Standardize ActiveRecord order clauses (#9395)
* Change simple order clauses

* Change nested order clauses
2020-07-20 10:00:51 -04:00

11 lines
264 B
Ruby

module Internal
class WebhookEndpointsController < Internal::ApplicationController
layout "internal"
def index
@endpoints = Webhook::Endpoint.includes(:user)
.page(params[:page]).per(50)
.order(created_at: :desc)
end
end
end