Top Level Namespace
Defined Under Namespace
Modules: Apartment
Instance Method Summary collapse
-
#reload!(print = true) ⇒ Object
reloads the environment.
Instance Method Details
#reload!(print = true) ⇒ Object
reloads the environment
5 6 7 8 9 10 11 12 |
# File 'lib/apartment/console.rb', line 5 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 |