Created
January 15, 2015 17:02
-
-
Save mmartinson/bf0da1e87720dad728fe to your computer and use it in GitHub Desktop.
Fix for supporting documented syntax of ActiveModel::Serializer 9.2 with Rails 4.2, add to ApplicationController..
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def _render_with_renderer_json(json, options) | |
serializer = build_json_serializer(json, options) | |
if serializer | |
super(serializer, options) | |
else | |
super(json, options) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment