Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
LocoDelAssembly committed Dec 13, 2019
1 parent 96da595 commit ed4a380
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/citations_controller.rb
Expand Up @@ -77,7 +77,7 @@ def destroy
format.html {redirect_back(fallback_location: (request.referer || root_path), notice: 'Citation was successfully destroyed.')}
format.json {head :no_content}
else
format.html {redirect_back(fallback_location: (request.referer || root_path), notice: 'Citation was not destroyed, ' + errors.full_messages.join('; '))}
format.html {redirect_back(fallback_location: (request.referer || root_path), notice: 'Citation was not destroyed, ' + @citation.errors.full_messages.join('; '))}
format.json {render json: @citation.errors, status: :unprocessable_entity}
end
end
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/collection_objects_controller.rb
Expand Up @@ -125,7 +125,7 @@ def destroy
format.html { redirect_to destroy_redirect, notice: 'CollectionObject was successfully destroyed.'}
format.json { head :no_content }
else
format.html {redirect_back(fallback_location: (request.referer || root_path), notice: 'CollectionObject was not destroyed, ' + errors.full_messages.join('; '))}
format.html {redirect_back(fallback_location: (request.referer || root_path), notice: 'CollectionObject was not destroyed, ' + @collection_object.errors.full_messages.join('; '))}
format.json {render json: @collection_object.errors, status: :unprocessable_entity}
end
end
Expand Down

0 comments on commit ed4a380

Please sign in to comment.