use kernel MemberHelper nl2br
This commit is contained in:
parent
5e2a171e94
commit
42ed5adbd8
|
@ -87,8 +87,4 @@ class WebResourcesController < ApplicationController
|
||||||
"extras" => {"widget-title"=>t(:web_resource),"more_url" => OrbitHelper.widget_more_url}
|
"extras" => {"widget-title"=>t(:web_resource),"more_url" => OrbitHelper.widget_more_url}
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
def nl2br(val)
|
|
||||||
val.gsub(/\r\n/, '<br />').html_safe
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue