Module: RailsPgExtras::Web
- Defined in:
- lib/rails_pg_extras/web.rb,
lib/rails_pg_extras/web/engine.rb,
app/controllers/rails_pg_extras/web/actions_controller.rb,
app/controllers/rails_pg_extras/web/queries_controller.rb,
app/controllers/rails_pg_extras/web/application_controller.rb
Defined Under Namespace
Classes: ActionsController, ApplicationController, Engine, QueriesController
Constant Summary collapse
- ACTIONS =
%i[kill_all pg_stat_statements_reset add_extensions].freeze
Class Method Summary collapse
Class Method Details
.action_enabled?(action_name) ⇒ Boolean
7 8 9 |
# File 'lib/rails_pg_extras/web.rb', line 7 def self.action_enabled?(action_name) RailsPgExtras.configuration.enabled_web_actions.include?(action_name.to_sym) end |