diff options
author | Rémy Coutable <remy@rymai.me> | 2017-06-30 18:34:06 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-07-06 12:18:25 +0300 |
commit | 19b8d8af2c74e0ff241356d5ccb5890baa6fb7c8 (patch) | |
tree | da51ca7dcc7e8340627390c714aed36bfc35835c /app/controllers/concerns | |
parent | c8ce1f0d5d5908351fd8a0e60c00e67c1be25ed9 (diff) |
Hide 'peek' by using 'performance bar' instead
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'app/controllers/concerns')
-rw-r--r-- | app/controllers/concerns/with_performance_bar.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/concerns/with_performance_bar.rb b/app/controllers/concerns/with_performance_bar.rb index ed253042701..d08f6e17f88 100644 --- a/app/controllers/concerns/with_performance_bar.rb +++ b/app/controllers/concerns/with_performance_bar.rb @@ -3,6 +3,8 @@ module WithPerformanceBar included do include Peek::Rblineprof::CustomControllerHelpers + alias_method :performance_bar_enabled?, :peek_enabled? + helper_method :performance_bar_enabled? end def peek_enabled? |