Bugs: Browse | Submit New | Admin

[#6100] unless tagged_with? calls in tag need to be called with reload = true

Date:
2006-10-11 13:56
Priority:
3
Submitted By:
Nobody
Assigned To:
Nobody (None)
Category:
taggable.rb
State:
Open
Summary:
unless tagged_with? calls in tag need to be called with reload = true

Detailed description
The tag method clears tags if the :clear option is set, but when tags are appended to the collectin, the tag isn't added
if tagged_with? is true. But the tags are not reloaded, so old tags are lost.

For example,

x.tag("one two three")
x.tag("one two three four five")

I think will result with x having "three", "four", and "five" as its tags. Changing the
tagged_with? call to tagged_with?(name, true) (i.e., reloading) does the right thing.

Add A Comment: Notepad

Please login


Followup

No Followups Have Been Posted

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item