Flowdock
method

cast_value

Importance_0
v5.2.3 - Show latest stable - 0 notes - Class: Cidr
cast_value(value) public

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/connection_adapters/postgresql/oid/cidr.rb, line 33
          def cast_value(value)
            if value.nil?
              nil
            elsif String === value
              begin
                IPAddr.new(value)
              rescue ArgumentError
                nil
              end
            else
              value
            end
          end
Register or log in to add new notes.