chore(rubocop): fix Rails/RootPathnameMethods and assimiled cops
This commit is contained in:
parent
6a3fd8fc4d
commit
b273e7b67e
8 changed files with 19 additions and 8 deletions
|
@ -1,7 +1,7 @@
|
|||
class PingController < ApplicationController
|
||||
def index
|
||||
Rails.logger.silence do
|
||||
status_code = if File.file?(Rails.root.join("maintenance"))
|
||||
status_code = if Rails.root.join("maintenance").file?
|
||||
# See https://cbonte.github.io/haproxy-dconv/2.0/configuration.html#4.2-http-check%20disable-on-404
|
||||
:not_found
|
||||
elsif (ActiveRecord::Base.connection.execute('select 1 as test;').first['test'] == 1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue