diff options
author | Rémy Coutable <remy@rymai.me> | 2017-07-06 22:37:31 +0300 |
---|---|---|
committer | Clement Ho <clemmakesapps@gmail.com> | 2017-07-06 22:37:31 +0300 |
commit | 18326c20805df1fb392ea55599626b3f19de1322 (patch) | |
tree | 79871da6e9e136f140c604d26b16163340b56f0d /app/helpers/performance_bar_helper.rb | |
parent | 46ccda86fb7e7c78b75c69d3b4c33f347f03da2b (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.rb | 7 |
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 |