mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-01 05:02:50 +08:00
fix hound
This commit is contained in:
parent
d5021fad2c
commit
b291553d01
1 changed files with 8 additions and 6 deletions
|
@ -29,14 +29,16 @@ class Step < ActiveRecord::Base
|
|||
dependent: :destroy
|
||||
|
||||
accepts_nested_attributes_for :checklists,
|
||||
reject_if: :all_blank,
|
||||
allow_destroy: true
|
||||
reject_if: :all_blank,
|
||||
allow_destroy: true
|
||||
accepts_nested_attributes_for :assets,
|
||||
reject_if: :all_blank,
|
||||
allow_destroy: true
|
||||
reject_if: :all_blank,
|
||||
allow_destroy: true
|
||||
accepts_nested_attributes_for :tables,
|
||||
reject_if: proc { |attributes| attributes['contents'].blank? },
|
||||
allow_destroy: true
|
||||
reject_if: proc { |attributes|
|
||||
attributes['contents'].blank?
|
||||
},
|
||||
allow_destroy: true
|
||||
|
||||
after_destroy :cascade_after_destroy
|
||||
before_save :set_last_modified_by
|
||||
|
|
Loading…
Reference in a new issue