Skip to content

Commit f61dccc

Browse files
committed
Fix rubocop issue
1 parent 835be5e commit f61dccc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/models/project.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def create_school_project_if_needed
114114
end
115115

116116
def identifier_cannot_be_taken_by_another_user
117-
return if Project.where(identifier: self.identifier).where.not(user_id:).empty?
117+
return if Project.where(identifier:).where.not(user_id:).empty?
118118

119119
errors.add(:identifier, "can't be taken by another user")
120120
end

0 commit comments

Comments
 (0)