Commit 5b2f7b1

mo khan <mo@mokhan.ca>
2013-06-15 15:46:47
add bullet gem and sample output
1 parent 11541c2
config/environments/development.rb
@@ -35,4 +35,12 @@ Confection::Application.configure do
   # Expands the lines which load the assets
   config.assets.debug = true
   config.action_controller.asset_host = ENV['ASSET_HOST']
+
+  config.after_initialize do
+    Bullet.enable = true
+    Bullet.alert = true
+    Bullet.bullet_logger = true
+    Bullet.console = true
+    Bullet.rails_logger = true
+  end
 end
samples/bullet_sample_screen_shot.png
Binary file
Gemfile
@@ -18,6 +18,7 @@ group :development do
   gem 'ffaker'
   gem 'rails-erd'
   gem 'lol_dba'
+  gem 'bullet'
 end
 
 group :test do
Gemfile.lock
@@ -36,6 +36,8 @@ GEM
     bootstrap-sass (2.3.2.0)
       sass (~> 3.2)
     builder (3.0.4)
+    bullet (4.6.0)
+      uniform_notifier
     carrierwave (0.8.0)
       activemodel (>= 3.2.0)
       activesupport (>= 3.2.0)
@@ -177,6 +179,7 @@ GEM
       kgio (~> 2.6)
       rack
       raindrops (~> 0.7)
+    uniform_notifier (1.2.0)
     warden (1.2.1)
       rack (>= 1.0)
 
@@ -186,6 +189,7 @@ PLATFORMS
 DEPENDENCIES
   asset_sync
   bootstrap-sass
+  bullet
   carrierwave
   coffee-rails (~> 3.2.1)
   dalli