mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-09 00:49:07 +08:00
Remove obsolete callback on RepositoryChecklistItemsValue [SCI-10551]
This commit is contained in:
parent
15d903122f
commit
720232a8db
1 changed files with 0 additions and 6 deletions
|
@ -5,10 +5,4 @@ class RepositoryChecklistItemsValue < ApplicationRecord
|
|||
belongs_to :repository_checklist_value, inverse_of: :repository_checklist_items_values
|
||||
|
||||
validates :repository_checklist_item, :repository_checklist_value, presence: true
|
||||
|
||||
after_destroy :destroy_empty_value
|
||||
|
||||
def destroy_empty_value
|
||||
repository_checklist_value.destroy! if repository_checklist_value.repository_checklist_items_values.blank?
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue