1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/test
Sean Griffin 6f08db05c0 Introduce an Attribute object to handle the type casting dance
There's a lot more that can be moved to these, but this felt like a good
place to introduce the object. Plans are:

- Remove all knowledge of type casting from the columns, beyond a
  reference to the cast_type
- Move type_cast_for_database to these objects
- Potentially make them mutable, introduce a state machine, and have
  dirty checking handled here as well
- Move `attribute`, `decorate_attribute`, and anything else that
  modifies types to mess with this object, not the columns hash
- Introduce a collection object to manage these, reduce allocations, and
  not require serializing the types
2014-06-13 10:20:54 -06:00
..
active_record/connection_adapters Add a type object to Column constructor 2014-05-17 17:16:05 -06:00
assets
cases Introduce an Attribute object to handle the type casting dance 2014-06-13 10:20:54 -06:00
fixtures Fixed serialization for records with an attribute named format. 2014-05-22 14:35:04 -07:00
migrations
models Fix regression on eager loading association based on SQL query rather 2014-06-03 16:20:08 -03:00
schema Timestamp values should be present on callbacks 2014-06-09 17:27:32 -03:00
support pg test, examples for default values and schema dumping of point types. 2014-06-03 13:46:32 +02:00
.gitignore
config.example.yml Remove code related to adapter which are no longer in repo 2014-05-16 18:17:25 +02:00
config.rb