diff --git a/README.md b/README.md index 5fe57ab..62e74b8 100644 --- a/README.md +++ b/README.md @@ -35,11 +35,11 @@ All you have to do is install it into your Rails 2 or 3 project. Right now if you use bundler, simply add this to your Gemfile: # Gemfile - gem "query_reviewer", :git => "git://github.com/nesquena/query_reviewer.git" + gem "query_reviewer" If you are not using bundler, you might want to [start using it](http://gembundler.com/rails23.html). You can also install this as a plugin: - script/plugin install git://github.com/nesquena/query_reviewer.git + script/plugin install git://github.com/dsboulder/query_reviewer.git In Rails 2, the rake tasks are not loaded automatically (as a gem), you’ll need to add the following to your Rakefile: @@ -59,9 +59,9 @@ If you don't create a config file, the gem will use the default in `vendor/plugi ## Configuration ## -The configuration file allows you to set configuration parameters shared across all rails environment, as well as overriding those shared parameteres with environment-specific parameters (such as disabling analysis on production!) +The configuration file allows you to set configuration parameters shared across all rails environment, as well as overriding those shared parameteres with environment-specific parameters. - * `enabled`: whether any output or query analysis is performed. Set this false in production! + * `enabled`: whether any output or query analysis is performed. By default, it's disabled for all environments except development. * `inject_view`: controls whether the output automatically is injected before the </body> in HTML output. * `profiling`: when enabled, runs the MySQL SET PROFILING=1 for queries longer than the `warn_duration_threshold` / 2.0 * `production_data`: whether the duration of a query should be taken into account diff --git a/lib/query_reviewer/views/_box_disabled.html.erb b/lib/query_reviewer/views/_box_disabled.html.erb index a1df92a..c84edf7 100644 --- a/lib/query_reviewer/views/_box_disabled.html.erb +++ b/lib/query_reviewer/views/_box_disabled.html.erb @@ -1,2 +1,2 @@
SQL analysis has been disabled for you. A cookie must be set to enable analysis. This generally slows down your browser, so it's only recommended for users analyzing SQL queries.
-Enabled it on next page load and from now on.
\ No newline at end of file +Enable it on next page load and from now on.
\ No newline at end of file diff --git a/query_reviewer_defaults.yml b/query_reviewer_defaults.yml index a6dd89d..32950ad 100644 --- a/query_reviewer_defaults.yml +++ b/query_reviewer_defaults.yml @@ -1,4 +1,5 @@ all: + enabled: false inject_view: true stack_trace_lines: 3 trace_includes_vendor: false @@ -6,7 +7,7 @@ all: profiling: enabled production_data: true max_safe_key_length: 100 - disable_sql_cache: true + disable_sql_cache: true warn_severity: 3 critical_severity: 7 @@ -31,9 +32,3 @@ all: development: enabled: true - -production: - enabled: false - -test: - enabled: false \ No newline at end of file