Sha256: d4c27d4239c9fcf0bf5e6154ea01224efd71002a10a3a21cb06cde4aaaadebb0
Contents?: true
Size: 455 Bytes
Versions: 1
Compression:
Stored size: 455 Bytes
Contents
class Setting class ForemanHostExtraValidator < ::Setting def self.load_defaults # Check the table exists return unless super self.transaction do [ self.set('host_name_validation_regex', _('Default regex the name of a host is validated against'), '^[a-zA-Z0-9\-_]+$') ].compact.each { |s| self.create! s.update(:category => 'Setting::ForemanHostExtraValidator') } end true end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
foreman_host_extra_validator-0.1.0 | app/models/setting/foreman_host_extra_validator.rb |