Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Wagner <david@marvid.fr>2016-10-19 00:20:36 +0300
committerDavid Wagner <david@marvid.fr>2016-10-24 23:29:48 +0300
commit03b6108f6f293830e50d113068877be155549fdd (patch)
tree036b693ccf6e556ba3ba404cdee918af18dec0ae /app/models/ci/variable.rb
parent4658c9a234b270897b0e9042a3f51fcdc376146b (diff)
Remove redundant class_name and foreign_key overrides
They were Rails' default and are unnecessarily overridden. Signed-off-by: David Wagner <david@marvid.fr>
Diffstat (limited to 'app/models/ci/variable.rb')
-rw-r--r--app/models/ci/variable.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/ci/variable.rb b/app/models/ci/variable.rb
index 6959223aed9..94d9e2b3208 100644
--- a/app/models/ci/variable.rb
+++ b/app/models/ci/variable.rb
@@ -2,7 +2,7 @@ module Ci
class Variable < ActiveRecord::Base
extend Ci::Model
- belongs_to :project, class_name: '::Project', foreign_key: :gl_project_id
+ belongs_to :project, foreign_key: :gl_project_id
validates_uniqueness_of :key, scope: :gl_project_id
validates :key,