Class: ActiveRecord::ConnectionAdapters::SQLite3Binary
- Inherits:
-
Type::Binary
- Object
- Type::Value
- Type::Binary
- ActiveRecord::ConnectionAdapters::SQLite3Binary
- Defined in:
- lib/active_record/connection_adapters/sqlite3_adapter.rb
Overview
:nodoc:
Instance Attribute Summary
Attributes inherited from Type::Value
Instance Method Summary collapse
Methods inherited from Type::Binary
#binary?, #changed_in_place?, #type, #type_cast, #type_cast_for_database
Methods inherited from Type::Value
#==, #binary?, #changed?, #changed_in_place?, #initialize, #klass, #number?, #text?, #type, #type_cast_for_database, #type_cast_for_schema, #type_cast_from_database, #type_cast_from_user
Constructor Details
This class inherits a constructor from ActiveRecord::Type::Value
Instance Method Details
#cast_value(value) ⇒ Object
45 46 47 48 49 50 |
# File '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 |