Skip to content

Commit 9320b07

Browse files
author
Kimmie
committed
Format README
1 parent 14d068d commit 9320b07

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,13 @@ class Member
3838
attr_accessor :social_insurance_number
3939
validates :social_insurance_number, luhn_algorithm: true
4040
end
41+
```
42+
4143
```
4244
person = Member.new(social_insurance_number: 'a valid number')
45+
4346
person.valid? # => true
47+
```
4448

4549
You can also pass in a customized message when validating an attribute with Luhn Algorithm, for example
4650

0 commit comments

Comments
 (0)