Sha256: 446edfbcea184e390fecd47e5291a35d3da726526e7df2b3d1062bb2bff9f0b9
Contents?: true
Size: 445 Bytes
Versions: 1
Compression:
Stored size: 445 Bytes
Contents
# frozen_string_literal: true require 'ditty/controllers/component' require 'proxes/policies/status_check_policy' require 'proxes/models/status_check' module ProxES class StatusChecks < Ditty::Component set model_class: StatusCheck set view_folder: ::Ditty::ProxES.view_folder def ordering return Sequel.asc(:order) if params[:sort].blank? Sequel.send(params[:order].to_sym, params[:sort].to_sym) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
proxes-0.10.1 | lib/proxes/controllers/status_checks.rb |