Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Clean up the implementation of AR::Dirty | Sean Griffin | 2015-09-24 | 1 | -8/+9 |
| | | | | | | | | | | | | | This moves a bit more of the logic required for dirty checking into the attribute objects. I had hoped to remove the `with_value_from_database` stuff, but unfortunately just calling `dup` on the attribute objects isn't enough, since the values might contain deeply nested data structures. I think this can be cleaned up further. This makes most dirty checking become lazy, and reduces the number of object allocations and amount of CPU time when assigning a value. This opens the door (but doesn't quite finish) to improving the performance of writes to a place comparable to 4.1 | ||||
* | Provide a better error message for unsupported classes in `serialize` | Sean Griffin | 2014-12-27 | 1 | -0/+11 |
| | | | | | | | | | We only support classes which provide a no-args constructor to use as a default value. We can provide a more helpful error message if we catch this when `serialize` is called, rather than letting it error when you try to assign the attribute. Fixes #18224 | ||||
* | Remove all error masking when decoding serialized data fails? | Mike Mangino | 2013-04-02 | 1 | -13/+8 |
| | |||||
* | Raise an exception when unserialization fails due to a missing class | Mike Mangino | 2013-03-28 | 1 | -1/+2 |
| | |||||
* | drop errors constant | Vipul A M | 2013-03-27 | 1 | -2/+1 |
| | |||||
* | fix AR::Coders::YAMLColumn nodoc [ci skip] | Francesco Rodriguez | 2012-09-21 | 1 | -4/+2 |
| | |||||
* | Psych is always available on 1.9 | Jeremy Kemper | 2012-05-31 | 1 | -5/+3 |
| | |||||
* | ActiveRecord::Coders::YAMLColumn#dump should raise an error | Guten | 2012-03-26 | 1 | -1/+7 |
| | | | | | | | | closes #2737 Conflicts: activerecord/lib/active_record/coders/yaml_column.rb | ||||
* | Do not serialize nil in serialized attribute. | Kirill Lashuk | 2012-01-31 | 1 | -1/+1 |
| | |||||
* | Make serialized columns with explicit object_type return a new instance of ↵ | Guillermo Álvarez | 2011-02-03 | 1 | -0/+2 |
| | | | | the object instead of nil | ||||
* | move the coders to the serialized_attributes hash | Aaron Patterson | 2011-02-01 | 1 | -1/+6 |
| | |||||
* | adding a YAML Column coder for YAML serialization to db columns | Aaron Patterson | 2011-02-01 | 1 | -0/+34 |