Method: Commonbase::Utils.yes_no_to_boolean

Defined in:
lib/commonbase/helpers/utils.rb

.yes_no_to_boolean(value) ⇒ Object



13
14
15
16
# File 'lib/commonbase/helpers/utils.rb', line 13

def self.yes_no_to_boolean(value)
  return false unless value.present?
  return ["YES", "Y"].include?(value.upcase)
end