mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-23 06:16:50 +00:00
clarify how to get old-style json without needing a monkey-patch
This commit is contained in:
parent
2b2f3e62e8
commit
a0e08377fa
@ -49,7 +49,7 @@ This also works with `render_with`, which uses `to_json` under the hood. Also no
|
||||
|
||||
## Getting the old version
|
||||
|
||||
If you find that your project is already relying on the old rails to_json change `render :json` to `render :text => @your_object.to_json`.
|
||||
If you find that your project is already relying on the old rails to_json change `render :json` to `render :json => @your_object.to_json`.
|
||||
|
||||
# Attributes and Associations
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user