diff options
author | José Valim <jose.valim@gmail.com> | 2010-12-09 13:15:25 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-12-09 13:15:25 +0100 |
commit | 28cf77203b0b5af648e441b5d9cfb75863ba2f39 (patch) | |
tree | 48eadf4df735ec3a201b253d693db054c1386d75 /actionpack/lib/action_dispatch | |
parent | f572a02b94ce85bb8db64e838aa159cf3ef4b1fa (diff) | |
download | rails-28cf77203b0b5af648e441b5d9cfb75863ba2f39.tar.gz rails-28cf77203b0b5af648e441b5d9cfb75863ba2f39.tar.bz2 rails-28cf77203b0b5af648e441b5d9cfb75863ba2f39.zip |
Check if the routes object really responds to define_mount_prefix.
Diffstat (limited to 'actionpack/lib/action_dispatch')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/mapper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/routing/mapper.rb b/actionpack/lib/action_dispatch/routing/mapper.rb index 5a38158e9f..47de5848fa 100644 --- a/actionpack/lib/action_dispatch/routing/mapper.rb +++ b/actionpack/lib/action_dispatch/routing/mapper.rb @@ -327,7 +327,7 @@ module ActionDispatch end def define_generate_prefix(app, name) - return unless app.respond_to?(:routes) + return unless app.respond_to?(:routes) && app.routes.respond_to?(:define_mounted_helper) _route = @set.named_routes.routes[name.to_sym] _routes = @set |