mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-05 04:03:45 +08:00
refactor
This commit is contained in:
parent
e7328c2e20
commit
590135b9b3
1 changed files with 2 additions and 1 deletions
|
@ -45,8 +45,9 @@ class RepositoryRowsController < ApplicationController
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
raise ActiveRecord::Rollback if errors[:repository_cells].any?
|
||||||
end
|
end
|
||||||
record.destroy if errors[:repository_cells].any?
|
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.json do
|
format.json do
|
||||||
if errors[:default_fields].empty? && errors[:repository_cells].empty?
|
if errors[:default_fields].empty? && errors[:repository_cells].empty?
|
||||||
|
|
Loading…
Reference in a new issue