Module: SubnetsHelper

Defined in:
app/helpers/subnets_helper.rb

Instance Method Summary collapse

Instance Method Details

#minimal?(subnets) ⇒ Boolean

expand or minimize the subnet when importing


4
5
6
7
# File 'app/helpers/subnets_helper.rb', line 4

def minimal? subnets
  subnets.each {|s| return false unless s.errors.empty?}
  subnets.size > 2
end