Apply manual rubocop fixes
This commit is contained in:
@ -31,7 +31,10 @@ module CodeOcean
|
||||
path: path, status: :created)
|
||||
else
|
||||
filename = "#{@object.path || ''}/#{@object.name || ''}#{@object.file_type.try(:file_extension) || ''}"
|
||||
format.html { redirect_to(options[:path]); flash[:danger] = t('files.error.filename', name: filename) }
|
||||
format.html do
|
||||
flash[:danger] = t('files.error.filename', name: filename)
|
||||
redirect_to(options[:path])
|
||||
end
|
||||
format.json { render(json: @object.errors, status: :unprocessable_entity) }
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user