diff options
author | Arthur Nogueira Neves <arthurnn@gmail.com> | 2014-04-04 11:57:07 -0400 |
---|---|---|
committer | Arthur Nogueira Neves <arthurnn@gmail.com> | 2014-04-04 11:57:07 -0400 |
commit | edb6f7db5495e6f683764e5bf5089cecab9cf7cd (patch) | |
tree | 48f760528261b4947dda50c2b2949d315ddbac3f /activemodel | |
parent | b9774a594339d5ac92503d91d180d88ec1faf436 (diff) | |
parent | e412ccbb563ea4abec6b4034094605e1565f56cc (diff) | |
download | rails-edb6f7db5495e6f683764e5bf5089cecab9cf7cd.tar.gz rails-edb6f7db5495e6f683764e5bf5089cecab9cf7cd.tar.bz2 rails-edb6f7db5495e6f683764e5bf5089cecab9cf7cd.zip |
Merge pull request #14599 from spagalloco/patch-1
add missing parentheses to validates_with documentation [skip ci]
Diffstat (limited to 'activemodel')
-rw-r--r-- | activemodel/lib/active_model/validations/with.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/validations/with.rb b/activemodel/lib/active_model/validations/with.rb index 7022f9bee5..ff41572105 100644 --- a/activemodel/lib/active_model/validations/with.rb +++ b/activemodel/lib/active_model/validations/with.rb @@ -53,7 +53,7 @@ module ActiveModel # # Configuration options: # * <tt>:on</tt> - Specifies when this validation is active - # (<tt>:create</tt> or <tt>:update</tt>. + # (<tt>:create</tt> or <tt>:update</tt>). # * <tt>:if</tt> - Specifies a method, proc or string to call to determine # if the validation should occur (e.g. <tt>if: :allow_validation</tt>, # or <tt>if: Proc.new { |user| user.signup_step > 2 }</tt>). |