Sha256: 133602a4c6e719aa58be855b217ed873fbb384a94537d7e4566d305cafd858c0
Contents?: true
Size: 456 Bytes
Versions: 17
Compression:
Stored size: 456 Bytes
Contents
# A workaraound to get `reload!` to also call Apartment::Tenant.init # This is unfortunate, but I haven't figured out how to hook into the reload process *after* files are reloaded # reloads the environment def reload!(print=true) puts "Reloading..." if print # This triggers the to_prepare callbacks ActionDispatch::Callbacks.new(Proc.new {}).call({}) # Manually init Apartment again once classes are reloaded Apartment::Tenant.init true end
Version data entries
17 entries across 17 versions & 2 rubygems