ActiveRecord::Type::Boolean (original) (raw)

Active Model Boolean Type

A class that behaves like a boolean type, including rules for coercion of user input.

Constants

FALSE_VALUES = [ false, 0, "0", :"0", "f", :f, "F", :F, "false", :false, "FALSE", :FALSE, "off", :off, "OFF", :OFF, ].to_set.freeze