module MatchValidation
Validate changes to a Match
Public Class Methods
validate(match, errors)
click to toggle source
Help validate the changes to match attributes
-
Args
-
match
-> Match
-
-
Params
-
:errors
- hash-
Errors will be added to this hash
-
-
# File app/models/concerns/match_validation.rb, line 10 def self.validate(match, errors) Validator.new(match).validate(errors) end