rootstrap/exception_hunter

View on GitHub
app/controllers/exception_hunter/resolved_errors_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
require_dependency 'exception_hunter/application_controller'

module ExceptionHunter
  class ResolvedErrorsController < ApplicationController
    def create
      ErrorGroup.find(params[:error_group][:id]).resolved!

      redirect_to errors_path, notice: 'Error resolved successfully'
    end
  end
end