removed a redundant method from WikiController

This commit is contained in:
Alexey Verkhovsky 2005-01-22 01:15:09 +00:00
parent 26878462f3
commit 71407f9b9f

View file

@ -403,10 +403,6 @@ class WikiController < ApplicationController
@template.render_file(template_name) @template.render_file(template_name)
end end
def template_engine(template_name)
ERB.new(IO.readlines(RAILS_ROOT + '/app/views/' + template_name + '.rhtml').join)
end
def truncate(text, length = 30, truncate_string = '...') def truncate(text, length = 30, truncate_string = '...')
if text.length > length then text[0..(length - 3)] + truncate_string else text end if text.length > length then text[0..(length - 3)] + truncate_string else text end
end end