In files_controller.rb: deleted .file_extension call due to the error: undefined method `file_extension' for nil:NilClass
This commit is contained in:
@ -8,7 +8,7 @@ class ErrorsController < ApplicationController
|
||||
|
||||
def create
|
||||
@error = Error.new(error_params)
|
||||
authorize!
|
||||
authorize @error
|
||||
hint = Whistleblower.new(execution_environment: @error.execution_environment).generate_hint(@error.message)
|
||||
respond_to do |format|
|
||||
format.json do
|
||||
|
Reference in New Issue
Block a user