class DogBiscuits::PlaceValidator

Validates that there is a place name

Public Instance Methods

validate(record) click to toggle source
# File lib/dog_biscuits/validators/place_validator.rb, line 6
def validate(record)
  record.errors[:place_name] << 'You must provide a place name' if record.place_name.blank?
end