diff options
author | Rémy Coutable <remy@rymai.me> | 2016-04-19 11:48:10 +0200 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-04-19 11:48:10 +0200 |
commit | 6970612bcc5b9a74c00abea129a8afc7cbe681bb (patch) | |
tree | ea8a49154219d711bf2abf57065035bb6f8dd515 /app | |
parent | 1fbea7cec974d3c215c0e5fae389c05b802b0600 (diff) | |
download | gitlab-ce-6970612bcc5b9a74c00abea129a8afc7cbe681bb.tar.gz |
Get rid of more requires, which causes warnings when code is reloaded15139-fix-constants-redefinition-warnings
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'app')
-rw-r--r-- | app/models/commit.rb | 6 | ||||
-rw-r--r-- | app/models/merge_request.rb | 3 | ||||
-rw-r--r-- | app/models/merge_request_diff.rb | 2 |
3 files changed, 3 insertions, 8 deletions
diff --git a/app/models/commit.rb b/app/models/commit.rb index f5d1e242e75..1829fecc616 100644 --- a/app/models/commit.rb +++ b/app/models/commit.rb @@ -12,11 +12,11 @@ class Commit attr_accessor :project - DIFF_SAFE_LINES ||= Gitlab::Git::DiffCollection::DEFAULT_LIMITS[:max_lines] + DIFF_SAFE_LINES = Gitlab::Git::DiffCollection::DEFAULT_LIMITS[:max_lines] # Commits above this size will not be rendered in HTML - DIFF_HARD_LIMIT_FILES ||= 1000 - DIFF_HARD_LIMIT_LINES ||= 50000 + DIFF_HARD_LIMIT_FILES = 1000 + DIFF_HARD_LIMIT_LINES = 50000 class << self def decorate(commits, project) diff --git a/app/models/merge_request.rb b/app/models/merge_request.rb index e410febdfff..47da154dd81 100644 --- a/app/models/merge_request.rb +++ b/app/models/merge_request.rb @@ -27,9 +27,6 @@ # merge_commit_sha :string # -require Rails.root.join("app/models/commit") -require Rails.root.join("lib/static_model") - class MergeRequest < ActiveRecord::Base include InternalId include Issuable diff --git a/app/models/merge_request_diff.rb b/app/models/merge_request_diff.rb index 33884118595..0580cafdd1b 100644 --- a/app/models/merge_request_diff.rb +++ b/app/models/merge_request_diff.rb @@ -11,8 +11,6 @@ # updated_at :datetime # -require Rails.root.join("app/models/commit") - class MergeRequestDiff < ActiveRecord::Base include Sortable |