Sha256: 579ee990052a0f37a5bdde7cb804f97ebbbb65f691ddf91d30afad694c2cfaca

Contents?: true

Size: 192 Bytes

Versions: 7

Compression:

Stored size: 192 Bytes

Contents

# frozen_string_literal: true
module ArInternalMetadatumValidation
  extend ActiveSupport::Concern

  included do
    validates :key, presence: true
    validates_uniqueness_of :key
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
model_base_generators-0.4.0 examples/rails-5.0/app/validations/ar_internal_metadatum_validation.rb
model_base_generators-0.3.9 example/app/validations/ar_internal_metadatum_validation.rb
model_base_generators-0.3.8 example/app/validations/ar_internal_metadatum_validation.rb
model_base_generators-0.3.7 example/app/validations/ar_internal_metadatum_validation.rb
model_base_generators-0.3.6 example/app/validations/ar_internal_metadatum_validation.rb
model_base_generators-0.3.5 example/app/validations/ar_internal_metadatum_validation.rb
model_base_generators-0.3.4 example/app/validations/ar_internal_metadatum_validation.rb