From a1ec80fbe8e377097f933c0986958f2c199999b7 Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Wed, 6 Aug 2014 11:05:21 -0300 Subject: [PATCH] Added support to bullet gem in development --- Gemfile | 4 ++++ config/environments/development.rb | 6 ++++++ 2 files changed, 10 insertions(+), 0 deletions(-) diff --git a/Gemfile b/Gemfile index c4f79a8..97a4656 100644 --- a/Gemfile +++ b/Gemfile @@ -23,6 +23,10 @@ gem 'locale', '~> 2.0.5' # FIXME list here all actual dependencies (i.e. the ones in debian/control), # with their GEM names (not the Debian package names) +group :development do + gem 'bullet' +end + group :production do gem 'dalli', '~> 2.7.0' end diff --git a/config/environments/development.rb b/config/environments/development.rb index 9bbd40b..32b8379 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -35,4 +35,10 @@ Noosfero::Application.configure do config.assets.debug = true config.consider_all_requests_local = true + + config.after_initialize do + Bullet.enable = true + Bullet.console = true + end + end -- libgit2 0.21.2