rails-api/active_model_serializers — pull request #714 by guilleiguaran (2014-11-03 22:40:39+00:00)
Title: Define as_json instead of to_json

As @chancancode mentioned in https://github.com/ohler55/oj/issues/199#issuecomment-61465250, we should define as_json, no to_json.

/cc @chancancode