diff options
author | Sean McGivern <sean@gitlab.com> | 2017-03-01 11:00:37 +0000 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2017-03-01 15:28:10 +0000 |
commit | 811e598f607235d89e71d09d99538ee4dee3ffed (patch) | |
tree | 7608961ebb9c672836dd2e3f03eb56920e7b4ef3 /app/models | |
parent | 8dd097a91530e4b047c4b391f21047c7d29d310d (diff) | |
download | gitlab-ce-811e598f607235d89e71d09d99538ee4dee3ffed.tar.gz |
Enable and autocorrect the CustomErrorClass cop
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/project.rb | 2 | ||||
-rw-r--r-- | app/models/project_wiki.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/models/project.rb b/app/models/project.rb index e06fc30dc8a..0c2494d3c32 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -19,7 +19,7 @@ class Project < ActiveRecord::Base extend Gitlab::ConfigHelper - class BoardLimitExceeded < StandardError; end + BoardLimitExceeded = Class.new(StandardError) NUMBER_OF_PERMITTED_BOARDS = 1 UNKNOWN_IMPORT_URL = 'http://unknown.git'.freeze diff --git a/app/models/project_wiki.rb b/app/models/project_wiki.rb index 9891f5edf41..539b31780b3 100644 --- a/app/models/project_wiki.rb +++ b/app/models/project_wiki.rb @@ -7,7 +7,7 @@ class ProjectWiki 'AsciiDoc' => :asciidoc }.freeze unless defined?(MARKUPS) - class CouldNotCreateWikiError < StandardError; end + CouldNotCreateWikiError = Class.new(StandardError) # Returns a string describing what went wrong after # an operation fails. |