Commit 3b1f8018927dac2170f04b76dbcf94d18a782756

Authored by Victor Costa
1 parent 00b9fc3d

Added support to bullet gem in development

Showing 2 changed files with 10 additions and 0 deletions   Show diff stats
@@ -23,6 +23,10 @@ gem 'locale', '~> 2.0.5' @@ -23,6 +23,10 @@ gem 'locale', '~> 2.0.5'
23 # FIXME list here all actual dependencies (i.e. the ones in debian/control), 23 # FIXME list here all actual dependencies (i.e. the ones in debian/control),
24 # with their GEM names (not the Debian package names) 24 # with their GEM names (not the Debian package names)
25 25
  26 +group :development do
  27 + gem 'bullet'
  28 +end
  29 +
26 group :production do 30 group :production do
27 gem 'dalli', '~> 2.7.0' 31 gem 'dalli', '~> 2.7.0'
28 end 32 end
config/environments/development.rb
@@ -35,4 +35,10 @@ Noosfero::Application.configure do @@ -35,4 +35,10 @@ Noosfero::Application.configure do
35 config.assets.debug = true 35 config.assets.debug = true
36 36
37 config.consider_all_requests_local = true 37 config.consider_all_requests_local = true
  38 +
  39 + config.after_initialize do
  40 + Bullet.enable = true
  41 + Bullet.console = true
  42 + end
  43 +
38 end 44 end