class Object

Public Instance Methods

reload!(print=true) click to toggle source

reloads the environment

# 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