method

cast_value

Importance_0
v7.1.3.2 - Show latest stable - 0 notes - Class: Boolean
cast_value(value) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activemodel/lib/active_model/type/boolean.rb, line 39
        def cast_value(value)
          if value == ""
            nil
          else
            !FALSE_VALUES.include?(value)
          end
        end
Register or log in to add new notes.