README.md in rails-pg-extras-4.1.0 vs README.md in rails-pg-extras-4.2.0
- old
+ new
@@ -119,9 +119,20 @@
mount RailsPgExtras::Web::Engine, at: 'pg_extras'
```
You can enable HTTP basic auth by specifying `RAILS_PG_EXTRAS_USER` and `RAILS_PG_EXTRAS_PASSWORD` variables.
+You can configure available web actions in `config/initializers/rails_pg_extras.rb`:
+
+```ruby
+RailsPgExtras.configure do |config|
+ # Rails-pg-extras does not enable all the web actions by default. You can check all available actions via `RailsPgExtras::Web::ACTIONS`.
+ # For example, you may want to enable the dangerous `kill_all` action.
+
+ config.enabled_web_actions = %i[kill_all pg_stat_statements_reset enable_extensions]
+end
+```
+
## Available methods
### `table_info`
This method displays metadata metrics for all or a selected table. You can use it to check the table's size, its cache hit metrics, and whether it is correctly indexed. Many sequential scans or no index scans are potential indicators of misconfigured indexes. This method aggregates data provided by other methods in an easy to analyze summary format.