Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Implement required #encode_with | Gustavo Beathyate | 2014-07-15 | 1 | -0/+1 |
| | | | | | | | While running the spec `ARCONN=mysql2 ruby -v -Itest test/cases/yaml_serialization_test.rb` the following warning shows up: `implementing to_yaml is deprecated, please implement "encode_with"` | ||||
* | Keep the types of virtual columns after yaml serialization | Sean Griffin | 2014-06-10 | 1 | -1/+14 |
| | | | | | On MySQL and PostgreSQL, the adapter does not type cast virtual columns for us. | ||||
* | New records should remain new after yaml serialization | Sean Griffin | 2014-06-01 | 1 | -0/+17 |
| | |||||
* | Don't change values in `@raw_attributes` during serialization | Sean Griffin | 2014-06-01 | 1 | -7/+12 |
| | | | | | | During `init_with`, the attributes given to the coder will be placed into `@raw_attributes`. As such, we should read from `@raw_attributes` when encoding, rather than `@attributes`, which has been type cast. | ||||
* | Add test for ActiveRecord::Relation YAML serialization, for #5303 issue | Ivan Antropov | 2013-11-03 | 1 | -0/+4 |
| | |||||
* | prevent global timezone state from leaking out of test cases. | Yves Senn | 2013-10-25 | 1 | -10/+4 |
| | |||||
* | No need to require psych since require yaml does that. | Rafael Mendonça França | 2012-01-04 | 1 | -1/+0 |
| | |||||
* | No need to use rescue block to require psych | Rafael Mendonça França | 2012-01-04 | 1 | -18/+14 |
| | |||||
* | stop test resetting global state | Jon Leighton | 2011-12-23 | 1 | -0/+6 |
| | |||||
* | Add hackery to make Syck use encode_with/init_with. Fixes 1.8 after recent ↵ | Jon Leighton | 2011-12-01 | 1 | -0/+5 |
| | | | | changes to attribute serialization. | ||||
* | please use ruby -I lib:test path/to/test.rb, or export RUBY_OPT | Aaron Patterson | 2011-06-06 | 1 | -1/+1 |
| | |||||
* | Refactor Active Record test connection setup. Please see the ↵ | Jon Leighton | 2011-06-04 | 1 | -1/+1 |
| | | | | RUNNING_UNIT_TESTS file for details, but essentially you can now configure things in test/config.yml. You can also run tests directly via the command line, e.g. ruby path/to/test.rb (no rake needed, uses default db connection from test/config.yml). This will help us fix the CI by enabling us to isolate the different Rails versions to different databases. | ||||
* | adding an `encode_with` method for Psych dump/load methods | Aaron Patterson | 2011-01-05 | 1 | -0/+7 |
| | |||||
* | make sure new objects can round trip | Aaron Patterson | 2011-01-05 | 1 | -0/+6 |
| | |||||
* | make sure that Psych can roundtrip an AR object | Aaron Patterson | 2011-01-05 | 1 | -0/+13 |
| | |||||
* | adding a test for YAML round trip | Aaron Patterson | 2010-12-02 | 1 | -0/+9 |
| | |||||
* | Added #to_i to DateTime in ActiveSupport so #to_yaml works correctly on ↵ | Serguei Filimonov | 2009-12-15 | 1 | -0/+11 |
ActiveRecord models with DateTime attributes. |