summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAhmad Sherif <me@ahmadsherif.com>2016-10-27 14:54:51 +0200
committerAhmad Sherif <me@ahmadsherif.com>2016-10-28 11:30:20 +0200
commitbc6302b942e1eb9e5d7148004c7e6d0d081e13ef (patch)
treef1b01f2454b2f4a23d7a06d3f055decf1906e9e9 /lib
parent14fbd25d06248ee268434278e0fe31fec262d23b (diff)
downloadgitlab-ce-bc6302b942e1eb9e5d7148004c7e6d0d081e13ef.tar.gz
Use public_send instead of send
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/github_import/base_formatter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/github_import/base_formatter.rb b/lib/gitlab/github_import/base_formatter.rb
index d07bb43044b..6dbae64a9fe 100644
--- a/lib/gitlab/github_import/base_formatter.rb
+++ b/lib/gitlab/github_import/base_formatter.rb
@@ -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