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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-07-06 22:37:31 +0300
committerClement Ho <clemmakesapps@gmail.com>2017-07-06 22:37:31 +0300
commit18326c20805df1fb392ea55599626b3f19de1322 (patch)
tree79871da6e9e136f140c604d26b16163340b56f0d /app/helpers/performance_bar_helper.rb
parent46ccda86fb7e7c78b75c69d3b4c33f347f03da2b (diff)
Improve & fix the performance bar UI and behavior
Diffstat (limited to 'app/helpers/performance_bar_helper.rb')
-rw-r--r--app/helpers/performance_bar_helper.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/helpers/performance_bar_helper.rb b/app/helpers/performance_bar_helper.rb
new file mode 100644
index 00000000000..d24efe37f5f
--- /dev/null
+++ b/app/helpers/performance_bar_helper.rb
@@ -0,0 +1,7 @@
+module PerformanceBarHelper
+ # This is a hack since using `alias_method :performance_bar_enabled?, :peek_enabled?`
+ # in WithPerformanceBar breaks tests (but works in the browser).
+ def performance_bar_enabled?
+ peek_enabled?
+ end
+end