- 24 11月, 2011 1 次提交
-
-
由 José Valim 提交于
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.
-
- 19 9月, 2011 1 次提交
-
-
由 José Valim 提交于
-
- 18 7月, 2011 1 次提交
-
-
由 John Firebaugh 提交于
This commit moves support for the :include serialization option for serializing associated objects out of ActiveRecord in into ActiveModel. The following methods support the :include option: * serializable_hash * to_json * to_xml Instances must respond to methods named by the values of the :includes array (or keys of the :includes hash). If an association method returns an object that is_a?(Enumerable) (which AR has_many associations do), it is assumed to be a collection association, and its elements must respond to :serializable_hash. Otherwise it must respond to :serializable_hash itself. While here, fix #858, XmlSerializer should not singularize already singular association names.
-
- 04 6月, 2011 1 次提交
-
-
由 Vijay Dev 提交于
-
- 24 5月, 2011 1 次提交
-
-
由 Sebastian Martinez 提交于
-
- 19 5月, 2011 1 次提交
-
-
由 Jim Herzberg 提交于
Attributes with :string type should not be given the type passed in model serialization options. Closes #1058
-
- 11 5月, 2011 1 次提交
-
-
由 Joshua Wehner 提交于
-
- 22 2月, 2011 2 次提交
-
-
由 Xavier Noria 提交于
-
由 Nicholas Rowe 提交于
-
- 21 2月, 2011 2 次提交
-
-
由 Xavier Noria 提交于
-
由 Nicholas Rowe 提交于
-
- 09 12月, 2010 1 次提交
-
-
由 Mike Dvorkin 提交于
Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 23 9月, 2010 1 次提交
-
-
由 Emilio Tagua 提交于
Signed-off-by: NSantiago Pastorino <santiago@wyeworks.com>
-
- 02 9月, 2010 1 次提交
-
-
由 Andreas Garnæs 提交于
Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 14 8月, 2010 2 次提交
-
-
由 Santiago Pastorino 提交于
-
由 Santiago Pastorino 提交于
-
- 14 6月, 2010 1 次提交
-
-
由 Rizwan Reza 提交于
-
- 13 5月, 2010 1 次提交
-
-
由 Santiago Pastorino 提交于
[#4529] Signed-off-by: NJeremy Kemper <jeremy@bitsweat.net>
-
- 29 4月, 2010 1 次提交
-
-
由 José Valim 提交于
Move several configuration values from Hash to ActiveSupport::XmlMini, which 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.
-
- 22 4月, 2010 1 次提交
-
-
由 José Valim 提交于
-
- 28 3月, 2010 1 次提交
-
-
由 Jeremy Kemper 提交于
-
- 17 1月, 2010 1 次提交
-
-
由 Mikel Lindsaar 提交于
-
- 14 8月, 2009 1 次提交
-
-
由 Joshua Peek 提交于
-
- 23 7月, 2009 2 次提交
-
-
由 Joshua Peek 提交于
Dasherize XML root by default to avoid invalid tags "<admin/posts>...</admin/posts>" [#2875 state:resolved]
-
由 John Maxwell 提交于
Patch to ActiveModel's (and ActiveRecord, by association) XML serialization: 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: NJoshua Peek <josh@joshpeek.com>
-
- 21 7月, 2009 1 次提交
-
-
由 Joshua Peek 提交于
-
- 12 7月, 2009 1 次提交
-
-
由 Joshua Peek 提交于
-
- 04 7月, 2009 1 次提交
-
-
由 Joshua Peek 提交于
-