mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-21 00:16:09 +01:00
#300: Updated add_predecessor to use specification instead of only description
This commit is contained in:
parent
93a914fdb3
commit
b0a18a4a2e
1 changed files with 2 additions and 2 deletions
|
|
@ -265,8 +265,8 @@ class Todo < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def add_predecessor(t)
|
||||
@predecessor_array = predecessors.map(&:description)
|
||||
@predecessor_array << t.description
|
||||
@predecessor_array = predecessors.map{|p| p.specification}
|
||||
@predecessor_array << t.specification
|
||||
end
|
||||
|
||||
# Return todos that should be activated if the current todo is completed
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue