Skip to content

Commit 00a63d5

Browse files
Rename validator method
1 parent 154ceae commit 00a63d5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/models/school.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ def import_in_progress?
117117
.exists?(description: id)
118118
end
119119

120-
def email_domain_is_valid?(domain)
121-
school_email_domains.exists?(domain)
120+
def valid_domain?(candidate_domain)
121+
school_email_domains.exists?(candidate_domain)
122122
end
123123

124124
private

0 commit comments

Comments
 (0)