Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Changeset [571cb1ddc6692ed96e04a14e670beb01ba8c93ca] by Mislav Marohnić

Revision 571cb1ddc6692ed96e04a14e670beb01ba8c93ca, committed by Mislav Marohnić · July 13th, 2010 @ 07:09 AM

enable AS::JSON.encode to encode AR::Relation by providing as_json method

[#5073 state:resolved]

Signed-off-by: José Valim jose.valim@gmail.com
http://github.com/rails/rails/commit/571cb1ddc6692ed96e04a14e670beb...

2 changed files

  • M activerecord/lib/active_record/relation.rb
  • M activerecord/test/cases/json_serialization_test.rb