lib/apartment/reloader.rb in ros-apartment-2.3.0 vs lib/apartment/reloader.rb in ros-apartment-2.4.0

- old
+ new

@@ -1,7 +1,8 @@ +# frozen_string_literal: true + module Apartment class Reloader - # Middleware used in development to init Apartment for each request # Necessary due to code reload (annoying). When models are reloaded, they no longer have the proper table_name # That is prepended with the schema (if using postgresql schemas) # I couldn't figure out how to properly hook into the Rails reload process *after* files are reloaded # so I've used this in the meantime.