forked from yltsrc/targetprocess-ruby
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTODO
More file actions
15 lines (12 loc) · 605 Bytes
/
TODO
File metadata and controls
15 lines (12 loc) · 605 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
1 Setters for has many associations:
# project.tasks << new_nask
Impediment: has_many association doesn't know how current entity named in collections.
For example: GeneralUser has_many Assignables, but Assignable doesn't have any
GeneralUser directly - Assignable belongs to GeneralUser as owner.
2 (Need to discuss) belongs_to associations setters works fine when called on entity:
# task.owner = general_user
# task.save
But we still can not pass entity inside #new:
# task = TargetProcess::Task.new(name: "aaa", project: tp_project_instance)
# task.save #=> Error
3 Update README