method

cast_value

rails latest stable - Class: ActiveRecord::ConnectionAdapters::SQLite3Binary

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v4.2.9) is shown here.

cast_value(value)
public

No documentation available.

# File activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb, line 45
      def cast_value(value)
        if value.encoding != Encoding::ASCII_8BIT
          value = value.force_encoding(Encoding::ASCII_8BIT)
        end
        value
      end