fix cache invariant for grouped todos in context and project view

This commit is contained in:
Reinier Balt 2013-06-19 17:47:51 +02:00
parent 1ae6e13f1d
commit f4908f2b7b
3 changed files with 6 additions and 2 deletions

View file

@ -294,5 +294,9 @@ module ApplicationHelper
})
end
def source_view_key
# uses @project.id or @context.id depending on source_view
source_view_is_one_of(:project, :context) ? "#{@source_view}-#{eval("@#{@source_view}.id")}" : @source_view
end
end