Add AD::Route#to_s

Signed-off-by: Joshua Peek <josh@joshpeek.com>
This commit is contained in:
Sam Ruby
2010-01-20 10:56:06 -06:00
committed by Joshua Peek
parent 459e9b29d4
commit c8cba7db76

View File

@@ -44,6 +44,12 @@ module ActionDispatch
def to_a
[@app, @conditions, @defaults, @name]
end
def to_s
@to_s ||= begin
"%-6s %-40s %s" % [(verb || :any).to_s.upcase, path, requirements.inspect]
end
end
end
end
end