In files_controller.rb: deleted .file_extension call due to the error: undefined method `file_extension' for nil:NilClass

This commit is contained in:
yqbk
2016-06-14 12:25:23 +02:00
parent c8abe46815
commit 4e5c3ba071
4 changed files with 5 additions and 4 deletions

View File

@ -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