Sha256: 0b2050834abd3748ee9786635708011a77a301f798cd5ddd8c205102f2b2638f
Contents?: true
Size: 460 Bytes
Versions: 25
Compression:
Stored size: 460 Bytes
Contents
# A workaraound to get `reload!` to also call Apartment::Database.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::Database.init true end
Version data entries
25 entries across 25 versions & 2 rubygems