aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/type/binary.rb
Commit message (Collapse)AuthorAgeFilesLines
* Make `_before_type_cast` actually be before type castSean Griffin2014-06-091-0/+9
| | | | | | | | | | | | | - The following is now true for all types, all the time - `model.attribute_before_type_cast == given_value` - `model.attribute == model.save_and_reload.attribute` - `model.attribute == model.dup.attribute` - `model.attribute == YAML.load(YAML.dump(model)).attribute` - Removes the remaining types implementing `type_cast_for_write` - Simplifies the implementation of time zone aware attributes - Brings tz aware attributes closer to being implemented as an attribute decorator - Adds additional point of control for custom types
* Removed unused `klass` definitions from typesSean Griffin2014-06-061-4/+0
| | | | Only `Date` and `Time` are handled.
* Refactor quoting of binary data to not be based on the column typeSean Griffin2014-06-031-0/+18
|
* Move types to the top level `ActiveRecord` namespaceSean Griffin2014-05-271-0/+17
`ActiveRecord::ConnectionAdapters::Type::Value` => `ActiveRecord::Type::Value`