diff --git a/Gemfile b/Gemfile index a2862af5..42a9cc09 100644 --- a/Gemfile +++ b/Gemfile @@ -53,4 +53,7 @@ group :development do # Re-enable rails benchmarker/profiler gem 'ruby-prof' gem 'test-unit' + + # Get infos when not using proper eager loading + gem 'bullet' end diff --git a/Gemfile.lock b/Gemfile.lock index 14483901..b44f286d 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -57,6 +57,8 @@ GEM erubis (>= 2.7.0) binding_of_caller (0.6.8) builder (3.0.4) + bullet (4.3.0) + uniform_notifier chronic (0.9.0) client_side_validations (3.1.4) coderay (1.0.8) @@ -205,6 +207,7 @@ GEM uglifier (1.3.0) execjs (>= 0.3.0) multi_json (~> 1.0, >= 1.0.2) + uniform_notifier (1.1.1) vegas (0.1.11) rack (>= 1.0.0) whenever (0.8.1) @@ -223,6 +226,7 @@ DEPENDENCIES acts_as_versioned! better_errors binding_of_caller + bullet client_side_validations coffee-rails (~> 3.2.1) daemons diff --git a/config/initializers/bullet.rb b/config/initializers/bullet.rb new file mode 100644 index 00000000..99e9a127 --- /dev/null +++ b/config/initializers/bullet.rb @@ -0,0 +1,6 @@ +if defined? Bullet + Bullet.enable = true + # Bullet.alert = true + Bullet.bullet_logger = true + Bullet.console = true +end \ No newline at end of file