lib/traducto/base.rb in traducto-1.0.3 vs lib/traducto/base.rb in traducto-1.0.4

- old
+ new

@@ -21,11 +21,15 @@ i18n_translate @base_key if translation_missing? format - return @text.html_safe + if @text.is_a? String + @text.html_safe + else + @text + end end private def action @@ -39,13 +43,9 @@ def format case @options[:format] when :text then format_text else format_base end - end - - def format? - @options[:format] ? true : false end def format_base @text = @text.join("\n") if @text.is_a? Array end