mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-25 08:34:08 +01:00
fix updating dependency trees when changin a name. Including invalidating cache when
necessary
This commit is contained in:
parent
1d359b22d4
commit
1a82f68d4b
5 changed files with 23 additions and 14 deletions
|
|
@ -172,6 +172,11 @@ class Todo < ActiveRecord::Base
|
|||
end
|
||||
end
|
||||
|
||||
def touch_predecessors
|
||||
self.touch
|
||||
predecessors.each { |p| p.touch_predecessors }
|
||||
end
|
||||
|
||||
def removed_predecessors
|
||||
return @removed_predecessors
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue