[Guides] Sentence break for clarity [ci-skip]
This commit is contained in:
parent
6e23c8242d
commit
b76269a692
@ -910,8 +910,8 @@ end
|
|||||||
The easiest way to add custom validators for validating individual attributes
|
The easiest way to add custom validators for validating individual attributes
|
||||||
is with the convenient `ActiveModel::EachValidator`. In this case, the custom
|
is with the convenient `ActiveModel::EachValidator`. In this case, the custom
|
||||||
validator class must implement a `validate_each` method which takes three
|
validator class must implement a `validate_each` method which takes three
|
||||||
arguments: record, attribute and value which correspond to the instance, the
|
arguments: record, attribute, and value. These correspond to the instance, the
|
||||||
attribute to be validated and the value of the attribute in the passed
|
attribute to be validated, and the value of the attribute in the passed
|
||||||
instance.
|
instance.
|
||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
|
Loading…
Reference in New Issue
Block a user