Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/git/git-scm.com.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r--app/controllers/application_controller.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index 0821aa7b..3e9171f6 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -1,6 +1,6 @@
# frozen_string_literal: true
-PageNotFound = Class.new(Exception)
+PageNotFound = Class.new(StandardError)
class ApplicationController < ActionController::Base
protect_from_forgery
@@ -13,7 +13,7 @@ class ApplicationController < ActionController::Base
@os = "linux"
end
- def set_title(title)
+ def title(title)
@page_title = "#{title} - Git"
end
@@ -24,7 +24,6 @@ class ApplicationController < ActionController::Base
end
def not_found_template
- Rails.root.join("public/404.html")
+ Rails.public_path.join('404.html')
end
-
end