diff options
author | Ana María Martínez Gómez <ammartinez@suse.de> | 2018-08-07 17:35:13 +0200 |
---|---|---|
committer | Ana María Martínez Gómez <ammartinez@suse.de> | 2018-08-07 17:35:13 +0200 |
commit | 3cb491f327de27d2d5106f4340e7b36c70cb9403 (patch) | |
tree | c8c8866b6dca2faec766ff63ca03133f5d9e53af /activerecord/test/cases/errors_test.rb | |
parent | b9807eb53880a386890aa1919cf812fb9876b805 (diff) | |
download | rails-3cb491f327de27d2d5106f4340e7b36c70cb9403.tar.gz rails-3cb491f327de27d2d5106f4340e7b36c70cb9403.tar.bz2 rails-3cb491f327de27d2d5106f4340e7b36c70cb9403.zip |
Add lambdas in conditional validations
As `Lambdas` are a type of `Proc`, they can also be used in the
`if`/`unless` option of a validation to decide when the validation is
executed. Add this case to the guide for clarification.
Closes https://github.com/rails/rails/issues/33212
Diffstat (limited to 'activerecord/test/cases/errors_test.rb')
0 files changed, 0 insertions, 0 deletions