Skip to content

Commit

Permalink
Use middleware Rack::Deflater.
Browse files Browse the repository at this point in the history
  • Loading branch information
winston committed Oct 19, 2015
1 parent 6cf2741 commit d4b7068
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,8 @@ class Application < Rails::Application

# Do not swallow errors in after_commit/after_rollback callbacks.
config.active_record.raise_in_transactional_callbacks = true

# Runtime Compression
config.middleware.use Rack::Deflater
end
end

0 comments on commit d4b7068

Please sign in to comment.