Module: Ms::Mascot::Validation

Included in:
Export, Submit
Defined in:
lib/ms/mascot/validation.rb

Constant Summary collapse

MASCOT_SWITCH =
lambda do |input|
  input = case input
  when true, 1, '1', /true/i   then '1'
  when false, 0, '0', /false/i then '0'
  else input
  end
  
  Configurable::Validation::validate(input, ['1', '0'])
end