Class: NameAuthorityId

Inherits:
Sequel::Model
  • Object
show all
Defined in:
backend/app/model/name_authority_id.rb

Instance Method Summary collapse

Instance Method Details

#validateObject



6
7
8
9
10
11
12
# File 'backend/app/model/name_authority_id.rb', line 6

def validate
  validates_unique([:authority_id],
                   :message => "Authority ID must be unique")
  map_validation_to_json_property([:authority_id], :authority_id)

  super
end