You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Each time you use acts_as_taggable or acts_as_ordered_taggable in your class, core.rb redefines the methods for all the tag types, including ones already defined from a previous acts_as_taggable or acts_as_ordered_taggable line.
This means that you can't mix ordered and unordered tag types in the same class. Whatever kind of tag type you define last sets the ordered property for all previously-defined tag types.
The text was updated successfully, but these errors were encountered:
Each time you use
acts_as_taggable
oracts_as_ordered_taggable
in your class, core.rb redefines the methods for all the tag types, including ones already defined from a previousacts_as_taggable
oracts_as_ordered_taggable
line.You can test this by adding a
puts
to core.rb:Now suppose you define your model like so:
When Foo loads, you see this printed:
----------------------------------------skills (false)----------------------
----------------------------------------skills (false)----------------------
----------------------------------------books (true)----------------------
----------------------------------------music (true)----------------------
----------------------------------------skills (false)----------------------
----------------------------------------books (false)----------------------
----------------------------------------music (false)----------------------
----------------------------------------interests (false)----------------------
This means that you can't mix ordered and unordered tag types in the same class. Whatever kind of tag type you define last sets the ordered property for all previously-defined tag types.
The text was updated successfully, but these errors were encountered: