acts-as-taggable-on
acts-as-taggable-on copied to clipboard
tag_list attribute is nil
Hello! Rails 6.0 acts-as-taggable-on: 6.5.0
I have a taggable model, "Person", which I want to serialize to json. when I access tag_list as an attribute on an instance of "Person" seems to be empty, even though both the instance has been tagged and the cached_tag_list is up to date.
i.e.:
@person=Person.new()
@person.tag_list.add('foobar')
@person.save
attributes = @person.attributes
nil == attributes.tag_list # this is true
['foobar'] == @person.tag_list # this is also true
Is this the expected behavior?
I'm a huge fan of this gem. Use it in almost all of my projects. Truly appreciate all of the work that goes into it. Thanks!
Have you tried upgrading to 7.0.0?
Have you tried upgrading to 7.0.0?
Same problem

Just confirming that this is an issue with v9 as well. I could possible find some time to look into it, assuming that these attributes should be present.