diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-04-20 18:28:19 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-04-20 18:28:19 -0400 |
commit | 6c3591279f394a4f23eda42a7db09bc09cad8f10 (patch) | |
tree | 2c7a7488db03236d4d42bd591a8dece58ba6e4d7 | |
parent | 76aade28e25d1f6e8924b35ed9bd365c8889987f (diff) | |
download | gitlab-ce-rs-rails-env-predicates.tar.gz |
Fix two places where we should be using `Rails.env.development?`rs-rails-env-predicates
-rw-r--r-- | app/views/layouts/_head.html.haml | 2 | ||||
-rw-r--r-- | config/initializers/6_rack_profiler.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/layouts/_head.html.haml b/app/views/layouts/_head.html.haml index 78d6d08ee1f..5a6ae09a506 100644 --- a/app/views/layouts/_head.html.haml +++ b/app/views/layouts/_head.html.haml @@ -16,7 +16,7 @@ = render 'layouts/google_analytics' if extra_config.has_key?('google_analytics_id') = render 'layouts/piwik' if extra_config.has_key?('piwik_url') && extra_config.has_key?('piwik_site_id') - = render 'layouts/bootlint' if Rails.env == 'development' + = render 'layouts/bootlint' if Rails.env.development? -# Atom feed - if current_user diff --git a/config/initializers/6_rack_profiler.rb b/config/initializers/6_rack_profiler.rb index b6340287569..bdad6202b11 100644 --- a/config/initializers/6_rack_profiler.rb +++ b/config/initializers/6_rack_profiler.rb @@ -1,4 +1,4 @@ -if Rails.env == 'development' +if Rails.env.development? require 'rack-mini-profiler' # initialization is skipped so trigger it |