Skip to content

Commit

Permalink
Use render template instead of render file
Browse files Browse the repository at this point in the history
Render file will need the full path in order to avoid security breaches.
In this particular case, there's no need to use render file, it's ok to
use render template.

Ref: rails/rails#35688
  • Loading branch information
tegon committed Aug 6, 2019
1 parent 3273f9e commit 77cb394
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/rails_app/app/views/admins/sessions/new.html.erb
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Welcome to "sessions/new" view!
<%= render file: "devise/sessions/new" %>
<%= render template: "devise/sessions/new" %>

0 comments on commit 77cb394

Please sign in to comment.