Class: CommitLengthValidator
- Inherits:
-
Object
- Object
- CommitLengthValidator
- Defined in:
- lib/validators/commit_length_validator.rb
Class Method Summary collapse
Class Method Details
.call(record) ⇒ Object
5 6 7 8 9 |
# File 'lib/validators/commit_length_validator.rb', line 5 def call(record) return if record.summary.length < CheckAhead.configuration.max_length record.errors[:length] = (record.summary.length) end |