12 lines
185 B
Ruby
12 lines
185 B
Ruby
module Validators
|
|
class DeployEnv::SubnetNotEmpty < Base
|
|
|
|
def valid?
|
|
!@model.subnets.empty?
|
|
end
|
|
|
|
def message
|
|
'Subnets array can not be empty'
|
|
end
|
|
end
|
|
end |