method

assert_valid

assert_valid(record)
public

Ensures that the passed record is valid by ActiveRecord standards and returns any error messages if it is not.