Sha256: 953ba2e5751e372daeb05de2f8faa53f039954a9ee65de98d3175dc5ba74dbd8
Contents?: true
Size: 696 Bytes
Versions: 2
Compression:
Stored size: 696 Bytes
Contents
require "rails_pg_extras" require "rails_pg_extras/version" module RailsPgExtras::Web class ApplicationController < ActionController::Base layout "rails_pg_extras/web/application" REQUIRED_EXTENSIONS = { pg_stat_statements: %i[calls outliers pg_stat_statements_reset], pg_buffercache: %i[buffercache_stats buffercache_usage], sslinfo: %i[ssl_used] } ACTIONS = %i[kill_all pg_stat_statements_reset add_extensions] if Rails.env.production? && ENV['RAILS_PG_EXTRAS_USER'].present? && ENV['RAILS_PG_EXTRAS_PASSWORD'].present? http_basic_authenticate_with name: ENV['RAILS_PG_EXTRAS_USER'], password: ENV['RAILS_PG_EXTRAS_PASSWORD'] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rails-pg-extras-4.0.1 | app/controllers/rails_pg_extras/web/application_controller.rb |
rails-pg-extras-4.0.0 | app/controllers/rails_pg_extras/web/application_controller.rb |