be more robust showing config list

This commit is contained in:
wvengen 2014-09-22 09:38:23 +02:00
parent 668ba1e5d6
commit 71324ce5db

View file

@ -97,7 +97,7 @@ module Admin::ConfigsHelper
elsif value.is_a? Enumerable
content_tag :ul, value.map {|v| content_tag :li, h(v)}.join.html_safe
elsif key =~ /url|website|www|homepage/
link_to(value, value).html_safe
link_to(value, value.to_s).html_safe
else
value
end