Skip to content

Commit

Permalink
fix translations to be html_safe
Browse files Browse the repository at this point in the history
  • Loading branch information
akaspick committed Sep 26, 2011
1 parent ca75ced commit 0cec054
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions config/initializers/cms/simple_form_updates.rb
Expand Up @@ -9,3 +9,15 @@ def commit_button_or_cancel
end
end
end

module SimpleForm
module Inputs
class Base
def translate_with_html_safe(namespace, default='')
t = translate_without_html_safe(namespace, default)
t ? t.html_safe : t
end
alias_method_chain :translate, :html_safe
end
end
end

0 comments on commit 0cec054

Please sign in to comment.