diff options
| author | mo khan <mo@mokhan.ca> | 2014-11-10 21:59:13 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2014-11-10 21:59:13 -0700 |
| commit | f3fec0d7b0f9b1fc166c2176532339f32f4f6450 (patch) | |
| tree | 0fd37cc906723de7302896087d24f4cb390e3558 /app/controllers/api/v1/errors_controller.rb | |
| parent | b9f46fb63d7c25ee1b8fddc2e8bfde55fff7de7f (diff) | |
rename errors controller to failures.
Diffstat (limited to 'app/controllers/api/v1/errors_controller.rb')
| -rw-r--r-- | app/controllers/api/v1/errors_controller.rb | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/app/controllers/api/v1/errors_controller.rb b/app/controllers/api/v1/errors_controller.rb deleted file mode 100644 index b093a1f..0000000 --- a/app/controllers/api/v1/errors_controller.rb +++ /dev/null @@ -1,18 +0,0 @@ -module Api - module V1 - class ErrorsController < ApiController - def create - failure = current_environment.failures.build(error_params) - failure.backtrace = params[:error][:backtrace] - failure.save! - render nothing: true - end - - private - - def error_params - params.require(:error).permit(:message, :hostname, :error_type, :backtrace) - end - end - end -end |
