There was an error while loading. Please reload this page.
1 parent 14d068d commit 9320b07Copy full SHA for 9320b07
README.md
@@ -38,9 +38,13 @@ class Member
38
attr_accessor :social_insurance_number
39
validates :social_insurance_number, luhn_algorithm: true
40
end
41
+```
42
+
43
```
44
person = Member.new(social_insurance_number: 'a valid number')
45
46
person.valid? # => true
47
48
49
You can also pass in a customized message when validating an attribute with Luhn Algorithm, for example
50
0 commit comments