Fix task validation again #16; mark assignment validation TODO
This commit is contained in:
parent
e561ddb064
commit
d086fe7cc7
2 changed files with 4 additions and 3 deletions
|
|
@ -29,6 +29,8 @@ class Task < ActiveRecord::Base
|
|||
|
||||
# extracts nicknames from a comma seperated string
|
||||
# and makes the users responsible for the task
|
||||
# TODO: check for uniqueness
|
||||
# TODO: check for maximal number of users
|
||||
def user_list=(string)
|
||||
@user_list = string.split(%r{,\s*})
|
||||
new_users = @user_list - users.collect(&:nick)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue