aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/api_app.md
diff options
context:
space:
mode:
authorUfuk Kayserilioglu <ufuk@paralaus.com>2019-01-24 22:41:19 +0200
committerUfuk Kayserilioglu <ufuk@paralaus.com>2019-01-24 22:41:19 +0200
commit44c07fd0be1368f8388669f9d660b75eb8e49ac9 (patch)
treedf4326fa765c7c3543f8888e0cf8138f3c6718e6 /guides/source/api_app.md
parentd5fcb5b9ad4ecb271834ee5a689a1ead40290086 (diff)
downloadrails-44c07fd0be1368f8388669f9d660b75eb8e49ac9.tar.gz
rails-44c07fd0be1368f8388669f9d660b75eb8e49ac9.tar.bz2
rails-44c07fd0be1368f8388669f9d660b75eb8e49ac9.zip
Add test for Hash-like object being passed to partial `locals`
The test passes an instance of `ActionController::Parameters` that acts like a Hash but does not respond to some Hash methods like `symbolize_keys`. Moreover, if someone were to call `to_h` on the value it would fail since the parameter is not permitted. So this is a great way to ensure that the partial rendering pipeline does not mess with `locals`.
Diffstat (limited to 'guides/source/api_app.md')
0 files changed, 0 insertions, 0 deletions