summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-12-15 11:14:31 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-12-15 11:14:31 +0200
commit19865b7cfd4d081f6bee6e973858ee488e995561 (patch)
treefd2245d1d94bfa8f12fa165a16326c2ad736e11d
parent9fc739e5d03072cd2e7dc09505c413eef2180956 (diff)
parent4eb3c47d4ec3e6750ae79e14eb008ce92fda96fd (diff)
downloadgitlab-ce-19865b7cfd4d081f6bee6e973858ee488e995561.tar.gz
Merge pull request #8448 from jvanbaarsen/fixed-already-defined-messages
Fixed a lot of already defined notices
-rw-r--r--app/models/commit.rb8
-rw-r--r--app/models/project_wiki.rb2
2 files changed, 5 insertions, 5 deletions
diff --git a/app/models/commit.rb b/app/models/commit.rb
index 212229649fc..37dd371ec00 100644
--- a/app/models/commit.rb
+++ b/app/models/commit.rb
@@ -10,12 +10,12 @@ class Commit
# Used to prevent 500 error on huge commits by suppressing diff
#
# User can force display of diff above this size
- DIFF_SAFE_FILES = 100
- DIFF_SAFE_LINES = 5000
+ DIFF_SAFE_FILES = 100 unless defined?(DIFF_SAFE_FILES)
+ DIFF_SAFE_LINES = 5000 unless defined?(DIFF_SAFE_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 unless defined?(DIFF_HARD_LIMIT_FILES)
+ DIFF_HARD_LIMIT_LINES = 50000 unless defined?(DIFF_HARD_LIMIT_LINES)
class << self
def decorate(commits)
diff --git a/app/models/project_wiki.rb b/app/models/project_wiki.rb
index 770a26ed894..f8a28ca9866 100644
--- a/app/models/project_wiki.rb
+++ b/app/models/project_wiki.rb
@@ -5,7 +5,7 @@ class ProjectWiki
'Markdown' => :markdown,
'RDoc' => :rdoc,
'AsciiDoc' => :asciidoc
- }
+ } unless defined?(MARKUPS)
class CouldNotCreateWikiError < StandardError; end