Fixed: private method 'gsub' called for nil:NilClass on activity (#1519).

git-svn-id: http://redmine.rubyforge.org/svn/trunk@1582 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2008-06-24 16:52:41 +00:00
parent 8474d05e99
commit c97a5efde9
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ module ProjectsHelper
end
def format_activity_description(text)
h(truncate(text, 250).gsub(%r{<(pre|code)>.*$}m, '...'))
h(truncate(text.to_s, 250).gsub(%r{<(pre|code)>.*$}m, '...'))
end
def project_settings_tabs