Skip to content

Commit

Permalink
Merge branch 'master' into master-legacy
Browse files Browse the repository at this point in the history
  • Loading branch information
thatandromeda committed Nov 15, 2019
2 parents 864f970 + 7fb6104 commit cf19149
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ gem 'paperclip', '~> 5'
gem 'pg', '~> 1.1.4'
gem 'rack'
gem 'rack-attack'
gem 'rack-mini-profiler', require: false
gem 'rack-mini-profiler'
gem 'rails', '~> 5.2.0'
gem 'rails_admin'
gem 'rails_admin_tag_list', git: 'https://github.com/berkmancenter/rails_admin_tag_list'
Expand Down
7 changes: 3 additions & 4 deletions config/initializers/mini-profiler.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
require 'rack-mini-profiler'

# If using Rack::Deflater (e.g. set in config/application.rb), this must be after it,
# so we use require: false in the Gemfile and then require it here.
# require 'rack-mini-profiler'
# If using Rack::Deflater (e.g. set in config/application.rb), this must be
# after it, so use require: false in the Gemfile and then require it here.
# Rails.application.config.middleware.insert_after Rack::Deflater, Rack::MiniProfiler

Rack::MiniProfiler.config.authorization_mode = :whitelist if Rails.env.production?
Expand Down

0 comments on commit cf19149

Please sign in to comment.