Class: NameAuthorityId
- Inherits:
 - 
      Sequel::Model
      
        
- Object
 - Sequel::Model
 - NameAuthorityId
 
 - Includes:
 - ASModel
 - Defined in:
 - backend/app/model/name_authority_id.rb
 
Instance Method Summary (collapse)
Methods included from ASModel
all_models, included, update_publish_flag, update_suppressed_flag
Methods included from JSONModel
JSONModel, #JSONModel, add_error_handler, all, allow_unmapped_enum_value, backend_url, client_mode?, custom_validations, destroy_model, enum_default_value, enum_values, handle_error, init, load_schema, #models, models, parse_jsonmodel_ref, parse_reference, repository, repository_for, schema_src, set_repository, strict_mode, strict_mode?, with_repository
Instance Method Details
- (Object) validate
      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  |