Skip to content

Commit

Permalink
Merge pull request #3448 from Ana06/kiwi-ui
Browse files Browse the repository at this point in the history
[api] Remove useless inclusion validation
  • Loading branch information
Moisés Déniz Alemán committed Jul 26, 2017
2 parents 74a1309 + f2f8b0a commit 2eac75b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/app/models/kiwi/package_group.rb
Expand Up @@ -6,7 +6,7 @@ class Kiwi::PackageGroup < ApplicationRecord
# exist in Active Record, such as "delete"
enum kiwi_type: %i[bootstrap delete docker image iso lxc oem pxe split testsuite vmx], _prefix: :type

validates :kiwi_type, presence: true, inclusion: { in: kiwi_types.keys }
validates :kiwi_type, presence: true

accepts_nested_attributes_for :packages, reject_if: :all_blank, allow_destroy: true
end
Expand Down

0 comments on commit 2eac75b

Please sign in to comment.