Permalink
Browse files

Fix tests on 1.9.2.

  • Loading branch information...
1 parent dc5336e commit 8aa86babad2eddb5244ba79b4e3b5702e7e77217 @josevalim josevalim committed Sep 27, 2010
@@ -87,6 +87,7 @@ def initialize(*)
@_status = 200
@_request = nil
@_response = nil
+ @_routes = nil
super
end
@@ -318,11 +318,6 @@ class << self
singleton_class.send(:define_method, :_routes) { routes }
end
- def initialize(*)
- @_routes = nil
- super
- end
-
define_method(:_routes) { @_routes || routes }
end

0 comments on commit 8aa86ba

Please sign in to comment.