1. 24 11月, 2011 1 次提交
    • J
      Implement ArraySerializer and move old serialization API to a new namespace. · 8896b4fd
      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.
      8896b4fd
  2. 19 9月, 2011 1 次提交
  3. 18 7月, 2011 1 次提交
    • J
      ActiveModel support for the :include serialization option · 4860143e
      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.
      4860143e
  4. 04 6月, 2011 1 次提交
  5. 24 5月, 2011 1 次提交
  6. 19 5月, 2011 1 次提交
  7. 11 5月, 2011 1 次提交
  8. 22 2月, 2011 2 次提交
  9. 21 2月, 2011 2 次提交
  10. 09 12月, 2010 1 次提交
  11. 23 9月, 2010 1 次提交
  12. 02 9月, 2010 1 次提交
  13. 14 8月, 2010 2 次提交
  14. 14 6月, 2010 1 次提交
  15. 13 5月, 2010 1 次提交
  16. 29 4月, 2010 1 次提交
  17. 22 4月, 2010 1 次提交
  18. 28 3月, 2010 1 次提交
  19. 17 1月, 2010 1 次提交
  20. 14 8月, 2009 1 次提交
  21. 23 7月, 2009 2 次提交
  22. 21 7月, 2009 1 次提交
  23. 12 7月, 2009 1 次提交
  24. 04 7月, 2009 1 次提交