Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #3936: easy_reload.diff

File easy_reload.diff, 0.5 kB (added by jeremy@planetargon.com, 3 years ago)

Easy reload of application from irb

  • railties/environments/development.rb

    old new  
    1717 
    1818# Don't care if the mailer can't send 
    1919config.action_mailer.raise_delivery_errors = false 
     20 
     21# Provide an easy way to reload the application from irb 
     22Object.const_get( 'Kernel' ).module_eval do 
     23  def reset!; Dispatcher.reset_application! end 
     24  alias_method :r!, :reset! 
     25end