diff options
author | José Valim <jose.valim@gmail.com> | 2012-01-03 20:26:45 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2012-01-03 20:27:38 +0100 |
commit | d38dac8ea967d3a74598ebb72615ce7189a0add7 (patch) | |
tree | ca99c10ee246010e89ad255a0a5cdd4f2ad5c261 /actionpack/lib | |
parent | 0d7d3a6e77c7f2f34236459bd1170951ded91bd5 (diff) | |
download | rails-d38dac8ea967d3a74598ebb72615ce7189a0add7.tar.gz rails-d38dac8ea967d3a74598ebb72615ce7189a0add7.tar.bz2 rails-d38dac8ea967d3a74598ebb72615ce7189a0add7.zip |
Override respond_to? since we are also overriding method_missing.
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/routes_proxy.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/routing/routes_proxy.rb b/actionpack/lib/action_dispatch/routing/routes_proxy.rb index f7d5f6397d..73af5920ed 100644 --- a/actionpack/lib/action_dispatch/routing/routes_proxy.rb +++ b/actionpack/lib/action_dispatch/routing/routes_proxy.rb @@ -16,6 +16,10 @@ module ActionDispatch end end + def respond_to?(method, include_private = false) + super || routes.url_helpers.respond_to?(method) + end + def method_missing(method, *args) if routes.url_helpers.respond_to?(method) self.class.class_eval <<-RUBY, __FILE__, __LINE__ + 1 |