Class: CommitSummaryValidator

Inherits:
Object
  • Object
show all
Defined in:
lib/validators/commit_summary_validator.rb

Class Method Summary collapse

Class Method Details

.call(record) ⇒ Object



5
6
7
8
9
# File 'lib/validators/commit_summary_validator.rb', line 5

def call(record)
  return if record.summary =~ rules

  record.errors[:summary] = error_message
end