Skip to content
Browse files

Use redefine_method instead define_method, it may be already defined.

  • Loading branch information...
1 parent c8db1ad commit 19d9fffb9b8350b03cf8b1e3a3249eba06d22c1a @miloops miloops committed Sep 28, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_dispatch/routing/route_set.rb
View
2 actionpack/lib/action_dispatch/routing/route_set.rb
@@ -313,7 +313,7 @@ class << self
# Yes plz - JP
included do
routes.install_helpers(self)
- singleton_class.send(:define_method, :_routes) { routes }
+ singleton_class.send(:redefine_method, :_routes) { routes }
end
define_method(:_routes) { @_routes ||= nil; @_routes || routes }

0 comments on commit 19d9fff

Please sign in to comment.
Something went wrong with that request. Please try again.