Sha256: 03183a98f389a4f504f74cf7cb5478e9110ba9efdfc985f7daad59c55e5e684d
Contents?: true
Size: 1.02 KB
Versions: 3
Compression:
Stored size: 1.02 KB
Contents
RailsPerformance.setup do |config| config.redis = Redis::Namespace.new("#{Rails.env}-rails-performance", redis: Redis.new) config.duration = 4.hours config.debug = false # currently not used> config.enabled = true # default path where to mount gem config.mount_at = '/rails/performance' # protect your Performance Dashboard with HTTP BASIC password config.http_basic_authentication_enabled = false config.http_basic_authentication_user_name = 'rails_performance' config.http_basic_authentication_password = 'password12' # if you need an additional rules to check user permissions config.verify_access_proc = proc { |controller| true } # for example when you have `current_user` # config.verify_access_proc = proc { |controller| controller.current_user && controller.current_user.admin? } # You can ignore endpoints with Rails standard notation controller#action # config.ignored_endpoints = ['HomeController#contact'] # config home button link config.home_link = '/' end if defined?(RailsPerformance)
Version data entries
3 entries across 3 versions & 1 rubygems