[#4183] Format wiki fields.

This commit is contained in:
Eric Davis committed 2010-07-13 11:09:37 -07:00
1 parent e19a1e192f
commit 9f4fec3fd2
2 files changed
+6 -5

No files matched your search

+2 -1
View File
@@ -26,6 +26,7 @@ module ContractsHelper
label = content_tag(:span, l(("field_" + field.to_s.gsub(/\_id$/, "")).to_sym) + ": ")
formatter = options[:format]
raw_content = options[:raw] || false
content = if formatter
send(formatter, object.send(field))
@@ -35,7 +36,7 @@ module ContractsHelper
content_tag(:p,
label +
h(content),
(raw_content ? content : h(content)),
html_options)
end