diff options
author | Ahmad Sherif <me@ahmadsherif.com> | 2016-10-27 14:54:51 +0200 |
---|---|---|
committer | Ahmad Sherif <me@ahmadsherif.com> | 2016-10-28 11:30:20 +0200 |
commit | bc6302b942e1eb9e5d7148004c7e6d0d081e13ef (patch) | |
tree | f1b01f2454b2f4a23d7a06d3f055decf1906e9e9 /lib | |
parent | 14fbd25d06248ee268434278e0fe31fec262d23b (diff) | |
download | gitlab-ce-bc6302b942e1eb9e5d7148004c7e6d0d081e13ef.tar.gz |
Use public_send instead of send
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/github_import/base_formatter.rb | 2 |
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 |