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:
Matt Rogers 2011-09-01 21:05:19 -05:00
parent 5cbc0b26c8
commit 55bf457740
4 changed files with 9 additions and 8 deletions

View file

@ -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}\''