Sha256: df03020892138d655f8fc8137fdef15e8fe7276f3e8a42173b280808a798b8e4
Contents?: true
Size: 562 Bytes
Versions: 34
Compression:
Stored size: 562 Bytes
Contents
module Messaging module Middleware # Used for hot code reloading (in development) and connection handling. # This makes Rails automatically return AR connections to the pool after we # have used them when processing a messages. # # See https://guides.rubyonrails.org/threading_and_code_execution.html for more information. class RailsWrapper attr_accessor :app def initialize(app) self.app = app end def call(*_args) app.reloader.wrap do yield end end end end end
Version data entries
34 entries across 34 versions & 1 rubygems