Use public_send instead of send

This commit is contained in:
Ahmad Sherif 2016-10-27 14:54:51 +02:00
parent 14fbd25d06
commit bc6302b942

View file

@ -10,7 +10,7 @@ module Gitlab
end
def create!
project.send(project_association).find_or_create_by!(find_condition) do |record|
project.public_send(project_association).find_or_create_by!(find_condition) do |record|
record.attributes = attributes
end
end