Skip to content

Commit

Permalink
added oink in dev mode
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgrippi committed Jan 26, 2012
1 parent bddd9b2 commit da9e57b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Gemfile
Expand Up @@ -153,4 +153,7 @@ group :development do

# speed up development requests (already pulled into rails 3.2)
gem 'active_reload'

# for tracing AR object instantiation and memory usage per request
gem 'oink'
end
5 changes: 5 additions & 0 deletions Gemfile.lock
Expand Up @@ -195,6 +195,7 @@ GEM
heroku (>= 2)
rails (>= 2)
highline (1.6.11)
hodel_3000_compliant_logger (0.1.0)
http_accept_language (1.0.2)
i18n (0.5.0)
i18n-inflector (2.6.3)
Expand Down Expand Up @@ -264,6 +265,9 @@ GEM
oauth2-provider (0.0.19)
activesupport (~> 3.0)
addressable (~> 2.2)
oink (0.9.3)
activerecord
hodel_3000_compliant_logger
omniauth (1.0.1)
hashie (~> 1.2)
rack
Expand Down Expand Up @@ -474,6 +478,7 @@ DEPENDENCIES
newrelic_rpm
nokogiri (~> 1.5.0)
oauth2-provider (= 0.0.19)
oink
omniauth (= 1.0.1)
omniauth-facebook
omniauth-tumblr
Expand Down
3 changes: 3 additions & 0 deletions config/initializers/oink.rb
@@ -0,0 +1,3 @@
if Rails.env == 'development'
Rails.application.middleware.use(Oink::Middleware, :logger => Rails.logger)
end

0 comments on commit da9e57b

Please sign in to comment.