Skip to content

Commit

Permalink
Merge pull request #77 from NZKoz/fix_railtie
Browse files Browse the repository at this point in the history
Support environments other than production and development by default
  • Loading branch information
SamSaffron committed Sep 25, 2012
2 parents 99329b0 + 0942c19 commit 784f6b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Ruby/lib/mini_profiler_rails/railtie.rb
Expand Up @@ -9,7 +9,7 @@ class Railtie < ::Rails::Railtie

# By default, only show the MiniProfiler in development mode, in production allow profiling if post_authorize_cb is set
c.pre_authorize_cb = lambda { |env|
Rails.env.development? || Rails.env.production?
!Rails.env.test?
}

c.skip_paths ||= []
Expand Down

0 comments on commit 784f6b0

Please sign in to comment.