diff options
author | Andrew White <pixeltrix@users.noreply.github.com> | 2016-11-13 14:09:30 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-13 14:09:30 +0000 |
commit | 0ef5b6c1630847c56a7a7ffe96045b72b23cd376 (patch) | |
tree | 43411c3bef670e73c4f85e71cf5f6e1b8bb48875 /activerecord/lib/active_record/validations/associated.rb | |
parent | d07d1e596674e8a6b20a8a5751b86ddd8d3fa630 (diff) | |
parent | 5faa9a235c46037a3b8e4f3308fd7ccadaae8039 (diff) | |
download | rails-0ef5b6c1630847c56a7a7ffe96045b72b23cd376.tar.gz rails-0ef5b6c1630847c56a7a7ffe96045b72b23cd376.tar.bz2 rails-0ef5b6c1630847c56a7a7ffe96045b72b23cd376.zip |
Merge pull request #26905 from bogdanvlviv/docs
Add missing `+` around a some literals.
Diffstat (limited to 'activerecord/lib/active_record/validations/associated.rb')
-rw-r--r-- | activerecord/lib/active_record/validations/associated.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/validations/associated.rb b/activerecord/lib/active_record/validations/associated.rb index b14db85167..c695965d7b 100644 --- a/activerecord/lib/active_record/validations/associated.rb +++ b/activerecord/lib/active_record/validations/associated.rb @@ -37,7 +37,7 @@ module ActiveRecord # # * <tt>:message</tt> - A custom error message (default is: "is invalid"). # * <tt>:on</tt> - Specifies the contexts where this validation is active. - # Runs in all validation contexts by default (nil). You can pass a symbol + # Runs in all validation contexts by default +nil+. You can pass a symbol # or an array of symbols. (e.g. <tt>on: :create</tt> or # <tt>on: :custom_validation_context</tt> or # <tt>on: [:create, :custom_validation_context]</tt>) |