mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-25 01:03:18 +08:00
Fix valdiation for snapshot selection
This commit is contained in:
parent
f8a48946c6
commit
07ca1de737
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ class RepositorySnapshot < RepositoryBase
|
|||
|
||||
validates :name, presence: true, length: { maximum: Constants::NAME_MAX_LENGTH }
|
||||
validates :status, presence: true
|
||||
validate :only_one_selected_for_my_module, if: ->(obj) { obj.changed.include? :selected }
|
||||
validate :only_one_selected_for_my_module, if: ->(obj) { obj.changed.include? 'selected' }
|
||||
|
||||
def default_columns_count
|
||||
Constants::REPOSITORY_SNAPSHOT_TABLE_DEFAULT_STATE['length']
|
||||
|
|
Loading…
Reference in a new issue