josevalim/active_model_serializers — pull request #129 by dgeb (2012-09-20 18:34:34+00:00)
Title: clean up lazy loading of serialization support

This more explicit method of loading AMS-support into ActiveRecord::Base and ActionController::Base fixes a problem using AMS with edge Rails (i.e. Rails 4), yet is also compatible with Rails 3.

Also included are tests to verify AMS-support in ActiveRecord::Base and ActionController::Base after load hooks have been run.