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

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEvan Read <eread@gitlab.com>2020-11-30 09:33:47 +0300
committerEvan Read <eread@gitlab.com>2020-11-30 09:33:47 +0300
commit0bc23e4c45b1324ae22c4c4730c8086db5983065 (patch)
treeff8a0ee5782486ac29b7beff7869f63d78e47e1e /lib
parent6efa4fb798ce9be931e8fcd6d8d9c9727b711082 (diff)
Fix a Rubocop predicate name problem
Diffstat (limited to 'lib')
-rw-r--r--lib/helpers/generic.rb2
-rw-r--r--lib/helpers/versions.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/helpers/generic.rb b/lib/helpers/generic.rb
index 5e5ea01b..5031745d 100644
--- a/lib/helpers/generic.rb
+++ b/lib/helpers/generic.rb
@@ -5,7 +5,7 @@ module Nanoc::Helpers
#
# Check if NANOC_ENV is set to production
#
- def is_production?
+ def production?
ENV['NANOC_ENV'] == 'production'
end
diff --git a/lib/helpers/versions.rb b/lib/helpers/versions.rb
index d54bb2ac..fbc77940 100644
--- a/lib/helpers/versions.rb
+++ b/lib/helpers/versions.rb
@@ -23,7 +23,7 @@ module Nanoc::Helpers
# Production is the only environment where we serve multiple versions.
#
def show_version_banner?
- is_production? && !latest?
+ production? && !latest?
end
#