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

Ticket #6829: reload_routes_after_inflect.diff

File reload_routes_after_inflect.diff, 0.5 kB (added by dcmanges, 2 years ago)

reload routes after inflect

  • railties/environments/environment.rb

    old new  
    5252#   inflect.irregular 'person', 'people' 
    5353#   inflect.uncountable %w( fish sheep ) 
    5454# end 
     55# Reload routes if any inflection rules are based on controller names 
     56# ActionController::Routing::Routes.reload 
    5557 
    5658# Add new mime types for use in respond_to blocks: 
    5759# Mime::Type.register "text/richtext", :rtf