Flowdock
method

_type_cast

Importance_0
v5.2.3 - Show latest stable - 0 notes - Class: Quoting
_type_cast(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/connection_adapters/sqlite3/quoting.rb, line 50
          def _type_cast(value)
            case value
            when BigDecimal
              value.to_f
            when String
              if value.encoding == Encoding::ASCII_8BIT
                super(value.encode(Encoding::UTF_8))
              else
                super
              end
            else
              super
            end
          end
Register or log in to add new notes.