Skip to content

Commit

Permalink
Merge branch '2872-fixes-for-rails-6-upgrade' into qa
Browse files Browse the repository at this point in the history
  • Loading branch information
shaun-technovation committed Aug 11, 2021
2 parents 39c0bfd + 98cf704 commit 2a5a445
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ end
group :production do
gem "hiredis", "~> 0.6"
gem "rack-timeout", "~> 0.5"
gem "heroku-deflater", "~> 0.6"
gem "rails_autoscale_agent"
gem "cloudflare-rails", "~> 2.0"
gem "wkhtmltopdf-heroku", "2.12.5.0"
Expand Down
3 changes: 0 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,6 @@ GEM
activesupport (>= 5.0)
hashdiff (1.0.1)
hashery (2.1.2)
heroku-deflater (0.6.3)
rack (>= 1.4.5)
highline (2.0.3)
hirb (0.7.3)
hiredis (0.6.3)
Expand Down Expand Up @@ -564,7 +562,6 @@ DEPENDENCIES
friendly_id (~> 5.4)
geocoder (~> 1.4.9)
gibbon (~> 3.3.0)
heroku-deflater (~> 0.6)
hiredis (~> 0.6)
httparty (~> 0.16)
i18n-tasks (~> 0.9)
Expand Down
2 changes: 2 additions & 0 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ class Application < Rails::Application
r301 '/users/sign_in', '/signin'
end

config.middleware.use Rack::Deflater

require "pdfkit"
config.middleware.use PDFKit::Middleware,
{header_right: '[page]/[toPage]'},
Expand Down

0 comments on commit 2a5a445

Please sign in to comment.