Skip to content

Commit b5c1e5c

Browse files
committed
Fix render: file call
rails/rails#35688 deprecated calling `render file` and letting it lookup the file from anywhere. This was deprecated in 6.0 and removed in 6.1, which is why travis was failing for new PRs.
1 parent bf3d495 commit b5c1e5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/dummy/app/controllers/template_assertions_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def render_file_absolute_path
2020
end
2121

2222
def render_file_relative_path
23-
render file: 'test/dummy/README.rdoc'
23+
render file: '/test/dummy/README.rdoc'
2424
end
2525

2626
def render_with_layout

0 commit comments

Comments
 (0)