Class: ActiveTracker::ExceptionsController
- Inherits:
-
BaseController
- Object
- ActionController::Base
- BaseController
- ActiveTracker::ExceptionsController
- Defined in:
- app/controllers/active_tracker/exceptions_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'app/controllers/active_tracker/exceptions_controller.rb', line 3 def index ts = Time.current.to_f @exceptions = ActiveTracker::Model.all("Exception") filter_exceptions if params[:q].present? duration = (Time.current.to_f - ts) * 1000 @exceptions, @pagination = ActiveTracker::Model.paginate(@exceptions, params[:page], ActiveTracker::Configuration.per_page) @duration = duration end |
#show ⇒ Object
12 13 14 15 |
# File 'app/controllers/active_tracker/exceptions_controller.rb', line 12 def show @exception = ActiveTracker::Model.find(params[:id]) @requests = @exception.at_requests.map {|id| ActiveTracker::Model.find(id) rescue nil}.compact end |