Permalink
Browse files

Clear url helpers when reloading routes

  • Loading branch information...
spastorino committed Nov 2, 2012
1 parent 190dddf commit e41d78ce221b2ca84cc260e20f3813eaace586b3
Showing with 5 additions and 0 deletions.
  1. +4 −0 actionpack/CHANGELOG.md
  2. +1 −0 actionpack/lib/action_dispatch/routing/route_set.rb
View
@@ -1,5 +1,9 @@
## Rails 3.2.9 (unreleased) ##
+* Clear url helpers when reloading routes.
+
+ *Santiago Pastorino*
+
* Revert the shorthand routes scoped with `:module` option fix
This added a regression since it is changing the URL mapping.
This makes the stable release backward compatible.
@@ -291,6 +291,7 @@ def finalize!
def clear!
@finalized = false
+ @url_helpers = nil
named_routes.clear
set.clear
formatter.clear

0 comments on commit e41d78c

Please sign in to comment.