diff options
author | Nicolas <nicolas@gitlab.com> | 2015-06-12 16:15:44 +0200 |
---|---|---|
committer | Nicolas <nicolas@gitlab.com> | 2015-06-20 01:06:57 +0200 |
commit | aecc989154ccb3cf044cff0341c0b7c195a9a572 (patch) | |
tree | b9ca81b631342c61636a2cc908b4ecaa8c3be885 /app/models/snippet.rb | |
parent | e9c40a9c0f306c1600312e5a82ba657c84ecbca8 (diff) | |
download | gitlab-ce-aecc989154ccb3cf044cff0341c0b7c195a9a572.tar.gz |
Make snippet filename optional.
Fixes #2384.
Diffstat (limited to 'app/models/snippet.rb')
-rw-r--r-- | app/models/snippet.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/app/models/snippet.rb b/app/models/snippet.rb index 3ab9e834c63..b0831982aa7 100644 --- a/app/models/snippet.rb +++ b/app/models/snippet.rb @@ -34,7 +34,6 @@ class Snippet < ActiveRecord::Base validates :author, presence: true validates :title, presence: true, length: { within: 0..255 } validates :file_name, - presence: true, length: { within: 0..255 }, format: { with: Gitlab::Regex.file_name_regex, message: Gitlab::Regex.file_name_regex_message } |