diff options
author | John Hawthorn <john@hawthorn.email> | 2019-03-19 11:56:53 -0700 |
---|---|---|
committer | John Hawthorn <john@hawthorn.email> | 2019-03-21 13:44:56 -0700 |
commit | f35631d46610ac62d57743bdb5f71a0039b1cf78 (patch) | |
tree | 5a8f9e7171d21faad292613b23e86bb58cf21223 /guides/source/layout.html.erb | |
parent | 382a9563a3bc3dd1982f4db1258e8f0e7f5fac8e (diff) | |
download | rails-f35631d46610ac62d57743bdb5f71a0039b1cf78.tar.gz rails-f35631d46610ac62d57743bdb5f71a0039b1cf78.tar.bz2 rails-f35631d46610ac62d57743bdb5f71a0039b1cf78.zip |
Prefer render template: in tests
Many tests were using `render file:`, but were only testing the
behaviour of `render template:` (file: just allows more paths/ is less
secure then template:).
The reason for so many `render file:` is probably that they were the old
default.
This commit replaces `render file:` with `render template:` anywhere the
test wasn't specifically interested in using `render file:`.
Diffstat (limited to 'guides/source/layout.html.erb')
0 files changed, 0 insertions, 0 deletions