Fix rubocop offenses

This commit is contained in:
Sebastian Serth
2022-01-19 08:57:07 +01:00
parent b00fc2ebe9
commit 11c3a888c2
4 changed files with 4 additions and 4 deletions

View File

@ -28,7 +28,7 @@ module CodeOcean
yield if block_given?
path = options[:path].try(:call) || @object
respond_with_valid_object(format, notice: t('shared.object_created', model: @object.class.model_name.human),
path: path, status: :created)
path: path, status: :created)
else
filename = "#{@object.path || ''}/#{@object.name || ''}#{@object.file_type.try(:file_extension) || ''}"
format.html do