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

Version Path
houston-core-0.8.4 app/controllers/errors_controller.rb
houston-core-0.8.3 app/controllers/errors_controller.rb
houston-core-0.8.2 app/controllers/errors_controller.rb
houston-core-0.8.1 app/controllers/errors_controller.rb
houston-core-0.8.0 app/controllers/errors_controller.rb
houston-core-0.8.0.pre2 app/controllers/errors_controller.rb
houston-core-0.8.0.pre app/controllers/errors_controller.rb
houston-core-0.7.0 app/controllers/errors_controller.rb