diff options
author | Steve Klabnik <steve@steveklabnik.com> | 2013-02-18 20:37:53 -0800 |
---|---|---|
committer | Steve Klabnik <steve@steveklabnik.com> | 2013-02-18 20:37:55 -0800 |
commit | 012213467667a5d4f56761fbc235a3359d95750a (patch) | |
tree | 5d4fc2c07c0adf6b1f2d0f40d77fc6a08fce139a /actionpack/lib/action_dispatch | |
parent | 40a10270c1087b8fd861b256ee4aa0fc713158e0 (diff) | |
download | rails-012213467667a5d4f56761fbc235a3359d95750a.tar.gz rails-012213467667a5d4f56761fbc235a3359d95750a.tar.bz2 rails-012213467667a5d4f56761fbc235a3359d95750a.zip |
Duck typing is hard. Add header to HtmlTableFormatter.
Somehow I missed this method, which was then throwing an error
when viewing routes as HTML.
Make @rubys happy: ✔
Diffstat (limited to 'actionpack/lib/action_dispatch')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/inspector.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/routing/inspector.rb b/actionpack/lib/action_dispatch/routing/inspector.rb index 2870888771..f0f083823e 100644 --- a/actionpack/lib/action_dispatch/routing/inspector.rb +++ b/actionpack/lib/action_dispatch/routing/inspector.rb @@ -212,6 +212,10 @@ module ActionDispatch @buffer << @view.render(partial: "routes/route", collection: routes) end + # the header is part of the HTML page, so we don't construct it here. + def header(routes) + end + def no_routes @buffer << <<-MESSAGE.strip_heredoc <p>You don't have any routes defined!</p> |