Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
97ac36fa5b7d
Commit
c1c1ef52
authored
Apr 10, 2015
by
Robert Speicher
Browse files
Remove duplicate ampersand from Label title format validator
parent
4a4e770069ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/models/label.rb
View file @
97ac36fa
...
...
@@ -27,7 +27,7 @@ class Label < ActiveRecord::Base
# Don't allow '?', '&', and ',' for label titles
validates
:title
,
presence:
true
,
format:
{
with:
/\A[^&\?,
&
]+\z/
},
format:
{
with:
/\A[^&\?,]+\z/
},
uniqueness:
{
scope: :project_id
}
default_scope
{
order
(
title: :asc
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment