aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model/serializers
Commit message (Collapse)AuthorAgeFilesLines
...
* Docs: Update to_xml documentation to match as_json docuemntationNicholas Rowe2011-02-201-0/+25
|
* Take into account current time zone when serializing datetime values [#6096 ↵Mike Dvorkin2010-12-091-0/+1
| | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Perf: refactor methods using inject when not need in activemodel.Emilio Tagua2010-09-221-4/+3
| | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* fixed some issues with JSON encodingJakub Suder2010-09-071-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>
* ActiveModel#to_xml fix (renamed parameter).Andreas Garnæs2010-09-021-1/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* to_json => as_jsonJames Miller2010-08-251-9/+9
|
* Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵Santiago Pastorino2010-08-141-1/+1
| | | | 's/[ \t]*$//' -i {} \;)
* ActiveModel::Base doesn't exist, include_root_in_json is a class_attribute ↵Santiago Pastorino2010-08-101-3/+3
| | | | for the classes which includes this module
* edit pass to AMo::Serializers::JSONXavier Noria2010-08-061-9/+9
|
* adding proper markup to commentNeeraj Singh2010-07-161-2/+2
|
* Added headings to serializers.Rizwan Reza2010-06-142-2/+6
|
* Really make include_root_in_json default to true [#3770 state:resolved]José Valim2010-06-081-3/+6
|
* Make ActiveResource serialize XML correctly when element_name is set.Santiago Pastorino2010-05-121-1/+1
| | | | | | [#4529] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Active Model JSON serializer now supports custom root optionJatinder Singh2010-05-041-1/+5
| | | | | | [#4515 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Move several configuration values from Hash to ActiveSupport::XmlMini, which ↵José Valim2010-04-291-111/+51
| | | | | | both Hash and Array depends on. Also, refactored ActiveModel serializers to just use ActiveSupport::XmlMini.to_tag. As consequence, if a serialized attribute is an array or a hash, it's not encoded as yaml, but as a hash or array.
* Speed up xml serializer by computing values just once and remove unecessary ↵José Valim2010-04-221-18/+17
| | | | code duplication.
* Use Array.wrap uniformlyJeremy Kemper2010-03-271-1/+2
|
* Adding documentation for ActiveModel::SerializationMikel Lindsaar2010-01-171-2/+2
|
* Change the ActiveModel::Base.include_root_in_json default to true for Rails ↵David Heinemeier Hansson2010-01-031-5/+3
| | | | 3 [DHH]
* Break up concerns for choosing what attributes should be serialized and the ↵Joshua Peek2009-08-132-38/+56
| | | | actual serializer
* Dasherize XML root by default to avoid invalid tags ↵Joshua Peek2009-07-221-1/+1
| | | | "<admin/posts>...</admin/posts>" [#2875 state:resolved]
* Patch to ActiveModel's (and ActiveRecord, by association) XML serialization: ↵John Maxwell2009-07-221-1/+5
| | | | | | If two parameters are present in Procs supplied to to_xml's :procs option, the model being serialized will be passed as the second argument [#2373 state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Kill AMo ivar attributes helperJoshua Peek2009-07-202-2/+0
|
* Integrate AMo XML serializer into ARJoshua Peek2009-07-111-22/+27
|
* Integrate AMo JSON serializer into ARJoshua Peek2009-07-031-4/+69
|
* Initial extraction of AMo xml serializerJoshua Peek2009-07-032-15/+187
|
* Ensure JSON serializer includes model naming Joshua Peek2009-07-031-0/+2
|
* Add basic JSON serializer to AMoJoshua Peek2009-06-171-0/+38