1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/guides
Ana María Martínez Gómez 3cb491f327 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
2018-08-07 17:35:13 +02:00
..
assets Change the background color which wrapped by code tag. [ci skip] 2018-07-19 09:49:35 +08:00
bug_report_templates Update bug report templates 2018-04-10 04:32:42 +03:00
rails_guides Enable Start/EndWith and RegexpMatch cops 2018-07-28 17:37:17 -04:00
source Add lambdas in conditional validations 2018-08-07 17:35:13 +02:00
.document
CHANGELOG.md Remove changelog header for unreleased version 2018-03-13 15:20:57 -04:00
rails_guides.rb Use frozen string literal in guides/ 2017-08-13 22:04:09 +09:00
Rakefile Enable Start/EndWith and RegexpMatch cops 2018-07-28 17:37:17 -04:00
w3c_validator.rb Use frozen string literal in guides/ 2017-08-13 22:04:09 +09:00