Use Rails.root.join where appropriate
This commit is contained in:
parent
82c3f62603
commit
afc4a75499
11 changed files with 17 additions and 17 deletions
|
@ -105,7 +105,7 @@ class ApplicationController < ActionController::Base
|
|||
end
|
||||
|
||||
def render_404
|
||||
render file: File.join(Rails.root, "public", "404"), layout: false, status: "404"
|
||||
render file: Rails.root.join("public", "404"), layout: false, status: "404"
|
||||
end
|
||||
|
||||
def require_non_empty_project
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue