Skip to content
Commits on Nov 30, 2011
  1. @josevalim

    Revert "Implement ArraySerializer and move old serialization API to a…

    josevalim committed Nov 30, 2011
    … new namespace."
    
    This reverts commit 8896b4f.
    
    Conflicts:
    
    	activemodel/lib/active_model.rb
    	activemodel/lib/active_model/serializable.rb
    	activemodel/lib/active_model/serializer.rb
    	activemodel/test/cases/serializer_test.rb
Commits on Nov 23, 2011
  1. @josevalim

    Implement ArraySerializer and move old serialization API to a new nam…

    josevalim committed Nov 23, 2011
    …espace.
    
    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.
Commits on Oct 5, 2011
  1. @bobbytables
Commits on Oct 4, 2011
  1. @bobbytables
Commits on Sep 22, 2011
  1. @josevalim

    Refactor AMo as_json.

    josevalim committed Sep 23, 2011
  2. @mattetti

    fixed a bug with the json serialization when the class setting is set…

    mattetti committed Sep 22, 2011
    … to not include the root, but an instance is serialized with the root option passed as true
Commits on Jul 2, 2011
  1. @joefiorini
Commits on Jun 3, 2011
  1. @vijaydev
Commits on Sep 7, 2010
  1. @mackuba @jeremy

    fixed some issues with JSON encoding

    mackuba committed with jeremy Aug 29, 2010
    - 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>
Commits on Aug 25, 2010
  1. @bensie

    to_json => as_json

    bensie committed Aug 25, 2010
Commits on Aug 10, 2010
  1. @spastorino

    ActiveModel::Base doesn't exist, include_root_in_json is a class_attr…

    spastorino committed Aug 10, 2010
    …ibute for the classes which includes this module
Commits on Aug 6, 2010
  1. @fxn
Commits on Jul 16, 2010
  1. adding proper markup to comment

    Neeraj Singh committed Jul 16, 2010
Commits on Jun 14, 2010
  1. @rizwanreza
Commits on Jun 7, 2010
  1. @josevalim
Commits on May 4, 2010
  1. @rubymerchant @jeremy

    Active Model JSON serializer now supports custom root option

    rubymerchant committed with jeremy Apr 30, 2010
    [#4515 state:committed]
    
    Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Commits on Jan 4, 2010
  1. @dhh
Commits on Aug 14, 2009
  1. @josh

    Break up concerns for choosing what attributes should be serialized a…

    josh committed Aug 13, 2009
    …nd the actual serializer
Commits on Jul 21, 2009
  1. @josh

    Kill AMo ivar attributes helper

    josh committed Jul 20, 2009
Commits on Jul 4, 2009
  1. @josh
  2. @josh
  3. @josh
Commits on Jun 18, 2009
  1. @josh

    Add basic JSON serializer to AMo

    josh committed Jun 17, 2009
Something went wrong with that request. Please try again.