lib/ab_admin/models/header.rb in ab_admin-0.6.1 vs lib/ab_admin/models/header.rb in ab_admin-0.7.0
- old
+ new
@@ -22,18 +22,17 @@
value = read_attribute(key)
value.blank? ? nil : value
end
def normalize_html
- ::I18n.available_locales.each do |loc|
+ ::Globalize.available_locales.each do |loc|
%w(title h1 keywords description).each do |attr|
send("#{attr}_#{loc}=", send("#{attr}_#{loc}").to_s.no_html)
end
end
- ::I18n.available_locales.each do |loc|
+ ::Globalize.available_locales.each do |loc|
send("seo_block_#{loc}=", sanitize(send("seo_block_#{loc}").to_s))
end
end
-
end
end
end