Sha256: 55b773208efd523d317baf7ada729a93ad436338c30376fc55612810b9832eef

Contents?: true

Size: 289 Bytes

Versions: 2

Compression:

Stored size: 289 Bytes

Contents

# frozen_string_literal: true
class MinterState < ActiveRecord::Base
  validates :namespace, presence: true, uniqueness: true
  validates :template, presence: true
  validates :template, format: { with: Object.const_get('Noid::Template::VALID_PATTERN'), message: 'value fails regex' }
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
active_fedora-noid-2.0.0 app/models/minter_state.rb
active_fedora-noid-2.0.0.beta6 app/models/minter_state.rb