Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Update some bad test cases for serialized columns | Sean Griffin | 2014-05-30 | 1 | -53/+17 |
| | | | | | | | | | | | | The first case was not testing what the issue mentioned actually was (A subclass of a class with serialized attributes does not serialize when they come from the database). The second case was a bad coder. It would fail if the model was `dup`ed, or if the the model was loaded from the database and then saved again. The third case wasn't testing anything that wasn't covered by the second (and was also a bad coder for the same reasons as the second). | ||||
* | Refactor serialized types to be partially defined as custom properties | Sean Griffin | 2014-05-29 | 1 | -10/+0 |
| | | | | | | | Many of the methods defined in `AttributeMethods::Serialization` can be refactored onto this type as well, but this is a reasonable small step. Removes the `Type` class, and the need for `decorate_columns` to handle serialized types. | ||||
* | Fix serialized field returning serialized data after update_column | Simon Eskildsen | 2014-04-05 | 1 | -0/+16 |
| | |||||
* | Use teardown helper method. | Guo Xiang Tan | 2014-03-14 | 1 | -2/+1 |
| | | | | | | | | Follow-Up to https://github.com/rails/rails/pull/14348 Ensure that SQLCounter.clear_log is called after each test. This is a step to prevent side effects when running tests. This will allow us to run them in random order. | ||||
* | prevent global timezone state from leaking out of test cases. | Yves Senn | 2013-10-25 | 1 | -8/+7 |
| | |||||
* | Remove unnecessary loop | Vipul A M | 2013-09-13 | 1 | -5/+2 |
| | |||||
* | Perf: avoid dupes add fallback logic for coders | Sam | 2013-09-11 | 1 | -1/+1 |
| | |||||
* | Remove instance level serialized_attributes setting was deprecated. | kennyj | 2013-06-02 | 1 | -6/+0 |
| | |||||
* | Fix typo in serialized_attribute_test. [ci skip] | Max Edmands | 2013-04-28 | 1 | -1/+1 |
| | |||||
* | Added testcase for #10067 and a CHANGELOG entry about this change. | kennyj | 2013-04-25 | 1 | -0/+14 |
| | |||||
* | test case for `serialize` default values. | Yves Senn | 2013-03-07 | 1 | -0/+7 |
| | | | | Closes #9110 | ||||
* | Serialized attribute can be serialized in an integer column | Rafael Mendonça França | 2012-12-21 | 1 | -1/+10 |
| | | | | Fix #8575 | ||||
* | Fix decorating columns for serialized attributes | itzki | 2012-12-10 | 1 | -0/+13 |
| | |||||
* | Fix `attributes_before_type_cast` for serialised attributes. | Nikita Afanasenko | 2012-10-31 | 1 | -3/+13 |
| | | | | Public method `attributes_before_type_cast` used to return internal AR structure (ActiveRecord::AttributeMethods::Serialization::Attribute), patch fixes this. Now behaves like `read_attribute_before_type_cast` and returns unserialised values. | ||||
* | Add test to ensure that save will raise SerializationTypeMismatch if the | Rafael Mendonça França | 2012-08-26 | 1 | -0/+6 |
| | | | | serialized attribute value is not from the same class | ||||
* | We don't need this reload | Rafael Mendonça França | 2012-08-26 | 1 | -1/+1 |
| | |||||
* | Use the Topic class in the attribute serialized tests | Rafael Mendonça França | 2012-08-26 | 1 | -8/+4 |
| | |||||
* | Use teardown hook to return the initial state of the object | Rafael Mendonça França | 2012-08-26 | 1 | -16/+5 |
| | |||||
* | Move the serialized attribute tests to their own file | Rafael Mendonça França | 2012-08-26 | 1 | -0/+214 |