Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

assume translations are html_safe

  • Loading branch information...
commit 4f91d5db25adf5fa9ce381977292d608e968d36e 1 parent cfef63b
@svenfuchs authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/minimal/template/translated_tags.rb
View
2  lib/minimal/template/translated_tags.rb
@@ -5,7 +5,7 @@ class Minimal::Template
module TranslatedTags
TRANSLATED_TAGS.each do |name|
define_method(name) do |*args, &block|
- args[0] = t(args[0]) if args[0].is_a?(Symbol)
+ args[0] = t(args[0]).html_safe if args[0].is_a?(Symbol)
super(*args, &block)
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.