Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge pull request #8038 from frodsan/fix_am_serializers_xml_dependency | Jeremy Kemper | 2012-10-27 | 1 | -1/+1 |
| | | | | Fix AM::Serializers::Xml dependency | ||||
* | Revert "Implement ArraySerializer and move old serialization API to a new ↵ | José Valim | 2011-11-30 | 1 | -3/+99 |
| | | | | | | | | | | | | | namespace." This reverts commit 8896b4fdc8a543157cdf4dfc378607ebf6c10ab0. Conflicts: activemodel/lib/active_model.rb activemodel/lib/active_model/serializable.rb activemodel/lib/active_model/serializer.rb activemodel/test/cases/serializer_test.rb | ||||
* | Implement ArraySerializer and move old serialization API to a new namespace. | José Valim | 2011-11-23 | 1 | -99/+3 |
| | | | | | | | | | | | | | The following constants were renamed: ActiveModel::Serialization => ActiveModel::Serializable ActiveModel::Serializers::JSON => ActiveModel::Serializable::JSON ActiveModel::Serializers::Xml => ActiveModel::Serializable::XML The main motivation for such a change is that `ActiveModel::Serializers::JSON` was not actually a serializer, but a module that when included allows the target to be serializable to JSON. With such changes, we were able to clean up the namespace to add true serializers as the ArraySerializer. | ||||
* | Change one more place for JSON string to Hash | Robert Ross | 2011-10-04 | 1 | -1/+1 |
| | |||||
* | Fix as_json doc to say what it actually returns. | Robert Ross | 2011-10-04 | 1 | -1/+1 |
| | |||||
* | Refactor AMo as_json. | José Valim | 2011-09-23 | 1 | -9/+5 |
| | |||||
* | fixed a bug with the json serialization when the class setting is set to not ↵ | Matt Aimonetti | 2011-09-22 | 1 | -12/+10 |
| | | | | include the root, but an instance is serialized with the root option passed as true | ||||
* | Enable passing root: false to #to_json | Joe Fiorini | 2011-07-01 | 1 | -5/+17 |
| | |||||
* | use clearer variable name in examples | Vijay Dev | 2011-06-04 | 1 | -10/+10 |
| | |||||
* | fixed some issues with JSON encoding | Jakub Suder | 2010-09-07 | 1 | -8/+6 |
| | | | | | | | | | | | - as_json in ActiveModel should return a hash and handle :only/:except/:methods options - Array and Hash should call as_json on their elements - json methods should not modify options argument [#5374 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | to_json => as_json | James Miller | 2010-08-25 | 1 | -9/+9 |
| | |||||
* | ActiveModel::Base doesn't exist, include_root_in_json is a class_attribute ↵ | Santiago Pastorino | 2010-08-10 | 1 | -3/+3 |
| | | | | for the classes which includes this module | ||||
* | edit pass to AMo::Serializers::JSON | Xavier Noria | 2010-08-06 | 1 | -9/+9 |
| | |||||
* | adding proper markup to comment | Neeraj Singh | 2010-07-16 | 1 | -2/+2 |
| | |||||
* | Added headings to serializers. | Rizwan Reza | 2010-06-14 | 1 | -2/+3 |
| | |||||
* | Really make include_root_in_json default to true [#3770 state:resolved] | José Valim | 2010-06-08 | 1 | -3/+6 |
| | |||||
* | Active Model JSON serializer now supports custom root option | Jatinder Singh | 2010-05-04 | 1 | -1/+5 |
| | | | | | | [#4515 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Change the ActiveModel::Base.include_root_in_json default to true for Rails ↵ | David Heinemeier Hansson | 2010-01-03 | 1 | -5/+3 |
| | | | | 3 [DHH] | ||||
* | Break up concerns for choosing what attributes should be serialized and the ↵ | Joshua Peek | 2009-08-13 | 1 | -14/+4 |
| | | | | actual serializer | ||||
* | Kill AMo ivar attributes helper | Joshua Peek | 2009-07-20 | 1 | -1/+0 |
| | |||||
* | Integrate AMo JSON serializer into AR | Joshua Peek | 2009-07-03 | 1 | -4/+69 |
| | |||||
* | Initial extraction of AMo xml serializer | Joshua Peek | 2009-07-03 | 1 | -15/+19 |
| | |||||
* | Ensure JSON serializer includes model naming | Joshua Peek | 2009-07-03 | 1 | -0/+2 |
| | |||||
* | Add basic JSON serializer to AMo | Joshua Peek | 2009-06-17 | 1 | -0/+38 |