mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-01 12:38:30 +08:00
Skip implications for my_module canvas position update
This commit is contained in:
parent
4c1e120f23
commit
f2ffe17636
1 changed files with 7 additions and 1 deletions
|
@ -25,7 +25,13 @@ class MyModule < ApplicationRecord
|
|||
|
||||
validate :check_status, if: :my_module_status_id_changed?
|
||||
validate :check_status_conditions, if: :my_module_status_id_changed?
|
||||
validate :check_status_implications, unless: :my_module_status_id_changed?
|
||||
validate :check_status_implications, unless: proc { |mm|
|
||||
mm.my_module_status_id_changed? ||
|
||||
mm.x_changed? ||
|
||||
mm.y_changed? ||
|
||||
mm.my_module_group_id_changed? ||
|
||||
mm.workflow_order_changed?
|
||||
}
|
||||
|
||||
belongs_to :created_by,
|
||||
foreign_key: 'created_by_id',
|
||||
|
|
Loading…
Reference in a new issue