Flowdock
method

cast_value

Importance_0
v4.2.7 - Show latest stable - 0 notes - Class: Integer
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 activerecord/lib/active_record/type/integer.rb, line 34
      def cast_value(value)
        case value
        when true then 1
        when false then 0
        else
          value.to_i rescue nil
        end
      end
Register or log in to add new notes.