mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-29 03:39:38 +00:00
Removed unused helper.
git-svn-id: http://svn.redmine.org/redmine/trunk@13700 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
ca4ed6df86
commit
f4651040b5
@ -391,15 +391,6 @@ module ApplicationHelper
|
||||
content_tag 'option', value, options.merge(:value => value, :selected => (value == selected))
|
||||
end
|
||||
|
||||
# Truncates and returns the string as a single line
|
||||
def truncate_single_line(string, *args)
|
||||
ActiveSupport::Deprecation.warn(
|
||||
"ApplicationHelper#truncate_single_line is deprecated and will be removed in Rails 4 poring")
|
||||
# Rails 4 ActionView::Helpers::TextHelper#truncate escapes.
|
||||
# So, result is broken.
|
||||
truncate(string.to_s, *args).gsub(%r{[\r\n]+}m, ' ')
|
||||
end
|
||||
|
||||
def truncate_single_line_raw(string, length)
|
||||
string.truncate(length).gsub(%r{[\r\n]+}m, ' ')
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user