Skip to content

Commit

Permalink
appended html_safe for inline error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
edison committed Feb 11, 2012
1 parent 6077895 commit 312796b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/simple_form/components/errors.rb
Expand Up @@ -12,7 +12,7 @@ def has_errors?
protected

def error_text
"#{options[:error_prefix]} #{errors.send(error_method)}".lstrip
"#{options[:error_prefix]} #{errors.send(error_method)}".lstrip.html_safe
end

def error_method
Expand Down

0 comments on commit 312796b

Please sign in to comment.