aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/config.example.yml
diff options
context:
space:
mode:
authorAna María Martínez Gómez <ammartinez@suse.de>2018-08-07 17:35:13 +0200
committerAna María Martínez Gómez <ammartinez@suse.de>2018-08-07 17:35:13 +0200
commit3cb491f327de27d2d5106f4340e7b36c70cb9403 (patch)
treec8c8866b6dca2faec766ff63ca03133f5d9e53af /activerecord/test/config.example.yml
parentb9807eb53880a386890aa1919cf812fb9876b805 (diff)
downloadrails-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/config.example.yml')
0 files changed, 0 insertions, 0 deletions