PERF: stop messing with strings that come back from I18n.t

allows better caching
This commit is contained in:
Sam
2014-02-18 14:10:03 +11:00
parent a5e3e9ae2a
commit a28a0bbeeb
4 changed files with 6 additions and 5 deletions
+2 -2
View File
@@ -25,9 +25,9 @@ module SiteContentClassMethods
result = ""
if site_content.blank?
ct = find_content_type(content_type)
result = ct.default_content if ct.present?
result = ct.default_content.dup if ct.present?
else
result = site_content.content
result = site_content.content.dup
end
result.gsub!(/\%\{[^}]+\}/) do |m|