Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix attribute_before_type_cast for serialized attributes. Fixes #4837. | Jon Leighton | 2012-02-07 | 1 | -0/+8 |
| | | | | | | Conflicts: activerecord/lib/active_record/core.rb | ||||
* | Make read_attribute code path accessible at the class level | Jon Leighton | 2011-12-22 | 1 | -8/+12 |
| | |||||
* | Remove the need for type_cast_attribute. | Jon Leighton | 2011-12-01 | 1 | -8/+0 |
| | | | | This is good because it reduces duplication. | ||||
* | Don't rely on underscore-prefixed attribute methods. | Jon Leighton | 2011-12-01 | 1 | -7/+4 |
| | | | | | | Define singleton methods on the attributes module instead. This reduces method pollution on the actual model classes. It also seems to make something faster, I am unsure why! O_o | ||||
* | consistency | Jon Leighton | 2011-11-30 | 1 | -4/+4 |
| | |||||
* | Don't check column type, you might implement a custom coder that serializes ↵ | Jon Leighton | 2011-11-30 | 1 | -1/+1 |
| | | | | to a different type | ||||
* | omg computer science! | Jon Leighton | 2011-11-30 | 1 | -18/+34 |
| | | | | | | | Implement a mini state machine for serialized attributes. This means we do not have to deserialize the values upon initialization, which means that if we never actually access the attribute, we never have to deserialize it. | ||||
* | Don't need second param | Jon Leighton | 2011-11-30 | 1 | -1/+1 |
| | |||||
* | Move some serialization stuff out of Base | Jon Leighton | 2011-11-30 | 1 | -0/+42 |
| | |||||
* | Extract attribute serialization code into a separate module | Jon Leighton | 2011-11-30 | 1 | -0/+42 |