Sha256: 887183ca2eaf901a380cc45ace0f11259eedac037db2d2bcc109c4b625df2d93
Contents?: true
Size: 356 Bytes
Versions: 8
Compression:
Stored size: 356 Bytes
Contents
class ErrorsController < ApplicationController def index authorize! :read, Action @actions = Action.reorder(finished_at: :desc).where.not(error_id: nil).preload(:error).limit(50) @actions = @actions.where(Action.arel_table[:finished_at].lt(params[:before])) if params[:before] render partial: "errors/actions" if request.xhr? end end
Version data entries
8 entries across 8 versions & 1 rubygems