Top Level Namespace
Defined Under Namespace
Modules: Innkeeper
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/innkeeper/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 Innkeeper again once classes are reloaded Innkeeper::Tenant.init true end |