acts-as-taggable-on
acts-as-taggable-on copied to clipboard
Rails 5.2.2 dependency not specified
Hello,
Yesterday we updated our rails to 5.2.2 and acts_as_taggable_on stopped working. We figured our that dirty dropped a certain @instance_variable that acts_as_taggable_on relied on.
Which errors in undefined method [] = for nil class.
We found out that we were on version 5.0 of acts_as_taggable_on. Which meant that when we updated our rails nothing told us that acts_as_taggable_on v5.0 isn't compatible with rails 5.2.2
Best regards, Michael
As a side note, this error still gets thrown even if you upgrade to 6.0.0. Here's the stacktrace:
File /home/test/.rvm/gems/ruby-2.6.1/gems/acts-as-taggable-on-5.0.0/lib/acts_as_taggable_on/taggable/core.rb line 206 in process_dirty_object
File /home/test/.rvm/gems/ruby-2.6.1/gems/acts-as-taggable-on-5.0.0/lib/acts_as_taggable_on/taggable/core.rb line 184 in set_tag_list_on
File /home/test/.rvm/gems/ruby-2.6.1/gems/acts-as-taggable-on-5.0.0/lib/acts_as_taggable_on/taggable/core.rb line 45 in genre_list=
File /home/test/.rvm/gems/ruby-2.6.1/gems/activemodel-5.2.2/lib/active_model/attribute_assignment.rb line 51 in public_send
File /home/test/.rvm/gems/ruby-2.6.1/gems/activemodel-5.2.2/lib/active_model/attribute_assignment.rb line 51 in _assign_attribute
File /home/test/.rvm/gems/ruby-2.6.1/gems/activemodel-5.2.2/lib/active_model/attribute_assignment.rb line 44 in block in _assign_attributes
File /home/test/.rvm/gems/ruby-2.6.1/gems/activemodel-5.2.2/lib/active_model/attribute_assignment.rb line 43 in each
File /home/test/.rvm/gems/ruby-2.6.1/gems/activemodel-5.2.2/lib/active_model/attribute_assignment.rb line 43 in _assign_attributes
File /home/test/.rvm/gems/ruby-2.6.1/gems/activerecord-5.2.2/lib/active_record/attribute_assignment.rb line 23 in _assign_attributes
File /home/test/.rvm/gems/ruby-2.6.1/gems/activemodel-5.2.2/lib/active_model/attribute_assignment.rb line 35 in assign_attributes
File /home/test/.rvm/gems/ruby-2.6.1/gems/activerecord-5.2.2/lib/active_record/core.rb line 314 in initialize
File /home/test/.rvm/gems/ruby-2.6.1/gems/activerecord-5.2.2/lib/active_record/inheritance.rb line 66 in new
File /home/test/.rvm/gems/ruby-2.6.1/gems/activerecord-5.2.2/lib/active_record/inheritance.rb line 66 in new
This is still happening on on the latest version of this library and Rails 5.2.4.3. I am not sure if they are actively working on this gem at the moment. Last commit was 4 months ago.