Permalink
Browse files

fix tests on Ruby 2.0.0

  • Loading branch information...
1 parent 817a20b commit 1c1f65430046fa0041acc898d8d6f5377f20806e @tenderlove tenderlove committed Sep 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_view/routing_url_for.rb
@@ -99,7 +99,7 @@ def _routes_context #:nodoc:
protected :_routes_context
def optimize_routes_generation? #:nodoc:
- controller.respond_to?(:optimize_routes_generation?) ?
+ controller.respond_to?(:optimize_routes_generation?, true) ?
controller.optimize_routes_generation? : super
end
protected :optimize_routes_generation?

0 comments on commit 1c1f654

Please sign in to comment.