mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-01 05:02:50 +08:00
fix step does not save if table is without content
This commit is contained in:
parent
53e09bd50a
commit
d5021fad2c
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ class Step < ActiveRecord::Base
|
|||
reject_if: :all_blank,
|
||||
allow_destroy: true
|
||||
accepts_nested_attributes_for :tables,
|
||||
reject_if: :all_blank,
|
||||
reject_if: proc { |attributes| attributes['contents'].blank? },
|
||||
allow_destroy: true
|
||||
|
||||
after_destroy :cascade_after_destroy
|
||||
|
|
Loading…
Reference in a new issue