Skip to content

Instantly share code, notes, and snippets.

@mmartinson
Created January 15, 2015 17:02
Show Gist options
  • Save mmartinson/bf0da1e87720dad728fe to your computer and use it in GitHub Desktop.
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..
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