Make sure that changing tags (i.e. toggle star) touches the taggable (todo) to invalidate cache. Make sure _context is cached different for _context of active todos and _context of tagged todos and _context in tickler

This commit is contained in:
Reinier Balt 2012-08-27 23:09:13 +02:00
parent fb6ee29f43
commit ff06f418e8
3 changed files with 4 additions and 3 deletions

View file

@ -64,7 +64,7 @@ module IsTaggable
# Removes tags from <tt>self</tt>. Accepts a string of tagnames, an array of tagnames, or an array of Tags.
def _remove_tags outgoing
outgoing = tag_cast_to_string(outgoing)
tags.delete(*(tags.select{|tag| outgoing.include? tag.name}))
tags.destroy(*(tags.select{|tag| outgoing.include? tag.name}))
end
def get_tag_name_from_item(item)