mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-25 02:06:10 +01:00
Allow projects to have commas in their name.
This removes the validation that checks to make sure there is no comma in the name, and updates the tests to match.
This commit is contained in:
parent
5cbc0b26c8
commit
55bf457740
4 changed files with 9 additions and 8 deletions
|
|
@ -14,7 +14,6 @@ class Project < ActiveRecord::Base
|
|||
validates_presence_of :name
|
||||
validates_length_of :name, :maximum => 255
|
||||
validates_uniqueness_of :name, :scope => "user_id"
|
||||
validates_does_not_contain :name, :string => ','
|
||||
|
||||
acts_as_list :scope => 'user_id = #{user_id} AND state = \'#{state}\''
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue