justinfrench-formtastic 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/formtastic.rb +2 -2
  2. metadata +1 -1
data/lib/formtastic.rb CHANGED
@@ -751,7 +751,7 @@ module Formtastic #:nodoc:
751
751
  # Creates an error sentence by calling to_sentence on the errors array.
752
752
  #
753
753
  def error_sentence(errors) #:nodoc:
754
- template.content_tag(:p, errors.to_sentence, :class => 'inline-errors')
754
+ template.content_tag(:p, errors.to_sentence.untaint, :class => 'inline-errors')
755
755
  end
756
756
 
757
757
  # Creates an error li list.
@@ -759,7 +759,7 @@ module Formtastic #:nodoc:
759
759
  def error_list(errors) #:nodoc:
760
760
  list_elements = []
761
761
  errors.each do |error|
762
- list_elements << template.content_tag(:li, error)
762
+ list_elements << template.content_tag(:li, error.untaint)
763
763
  end
764
764
  template.content_tag(:ul, list_elements.join("\n"), :class => 'errors')
765
765
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: justinfrench-formtastic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin French