Less Grotty

Does what Revision 535 does, but
slightly less ugly.
This commit is contained in:
Jacques Distler 2010-01-25 22:01:10 -06:00
parent 9dc59b7b7c
commit cbb3e4b74f
3 changed files with 12 additions and 11 deletions

View file

@ -104,13 +104,13 @@ end
class StubUrlGenerator < AbstractUrlGenerator
def initialize
controller = Object.new
def controller.url_for(options = {})
'../files/pngs'
end
super(controller)
super(:doesnt_need_controller)
end
def url_for(hash = {})
'../files/pngs'
end
def file_link(mode, name, text, web_name, known_file, description)
link = CGI.escape(name)
case mode