mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
revise docs [ci skip]
This commit is contained in:
parent
479f3b4054
commit
d7a85c5c51
2 changed files with 4 additions and 4 deletions
|
@ -100,12 +100,12 @@ module ActiveModel
|
|||
end
|
||||
end
|
||||
|
||||
# This method is used to define validation that cannot be corrected by end
|
||||
# user and is considered exceptional. So each validator defined with bang
|
||||
# This method is used to define validations that cannot be corrected by end
|
||||
# users and are considered exceptional. So each validator defined with bang
|
||||
# or <tt>:strict</tt> option set to <tt>true</tt> will always raise
|
||||
# <tt>ActiveModel::StrictValidationFailed</tt> instead of adding error
|
||||
# when validation fails.
|
||||
# See <tt>validates</tt> for more information about validation itself.
|
||||
# See <tt>validates</tt> for more information about the validation itself.
|
||||
def validates!(*attributes)
|
||||
options = attributes.extract_options!
|
||||
options[:strict] = true
|
||||
|
|
|
@ -35,7 +35,7 @@ class ERB
|
|||
singleton_class.send(:remove_method, :html_escape)
|
||||
module_function :html_escape
|
||||
|
||||
# Returns an escaped version of +html+ without affecting existing escaped entities.
|
||||
# A utility method for escaping HTML without affecting existing escaped entities.
|
||||
#
|
||||
# ==== Examples
|
||||
# html_escape_once("1 < 2 & 3")
|
||||
|
|
Loading…
Reference in a new issue