Sha256: 7f2609bb7f948e8210df31cfae5b22eb65dd7d408ad119b297bbe42aa2722d1f

Contents?: true

Size: 314 Bytes

Versions: 19

Compression:

Stored size: 314 Bytes

Contents

module Katello
  module Concerns
    module SettingExtensions
      extend ActiveSupport::Concern

      included do
        validates :value, inclusion: { in: ::Runcible::Models::YumImporter::DOWNLOAD_POLICIES },
          if: ->(setting) { setting.name == 'default_download_policy' }
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
katello-3.2.1.1 app/models/katello/concerns/setting_extensions.rb
katello-3.2.1 app/models/katello/concerns/setting_extensions.rb
katello-3.2.0 app/models/katello/concerns/setting_extensions.rb
katello-3.2.0.rc3 app/models/katello/concerns/setting_extensions.rb
katello-3.2.0.rc2 app/models/katello/concerns/setting_extensions.rb
katello-3.2.0.rc1.1 app/models/katello/concerns/setting_extensions.rb
katello-3.2.0.rc1 app/models/katello/concerns/setting_extensions.rb
katello-3.1.0.1 app/models/katello/concerns/setting_extensions.rb
katello-3.1.0 app/models/katello/concerns/setting_extensions.rb
katello-3.1.0.rc2.1 app/models/katello/concerns/setting_extensions.rb
katello-3.0.2 app/models/katello/concerns/setting_extensions.rb
katello-3.1.0.rc1 app/models/katello/concerns/setting_extensions.rb
katello-3.0.1 app/models/katello/concerns/setting_extensions.rb
katello-3.0.0 app/models/katello/concerns/setting_extensions.rb
katello-3.0.0.rc7 app/models/katello/concerns/setting_extensions.rb
katello-3.0.0.rc5 app/models/katello/concerns/setting_extensions.rb
katello-3.0.0.rc4 app/models/katello/concerns/setting_extensions.rb
katello-3.0.0.rc3 app/models/katello/concerns/setting_extensions.rb
katello-3.0.0.rc2 app/models/katello/concerns/setting_extensions.rb