Sha256: cf241d06dce3f8467f8cb6b851dee3eabae549d6783a1a93061d1d5839b62dc7

Contents?: true

Size: 357 Bytes

Versions: 6

Compression:

Stored size: 357 Bytes

Contents

# frozen_string_literal: true

if Rails.env.development? && !Rails.application.config.try(:boost_performance)
  require "rack-mini-profiler"

  # initialization is skipped so trigger it
  Rack::MiniProfilerRails.initialize!(Rails.application)
  Rack::MiniProfiler.config.skip_paths << "/favicon.ico"
  Rack::MiniProfiler.config.position = "bottom-left"
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
decidim-generators-0.29.1 lib/decidim/generators/app_templates/rack_profiler_initializer.rb
decidim-generators-0.29.0 lib/decidim/generators/app_templates/rack_profiler_initializer.rb
decidim-generators-0.29.0.rc4 lib/decidim/generators/app_templates/rack_profiler_initializer.rb
decidim-generators-0.29.0.rc3 lib/decidim/generators/app_templates/rack_profiler_initializer.rb
decidim-generators-0.29.0.rc2 lib/decidim/generators/app_templates/rack_profiler_initializer.rb
decidim-generators-0.29.0.rc1 lib/decidim/generators/app_templates/rack_profiler_initializer.rb