From d6d0a3ea2eeb408cd09d038399d2c3d112bcd84d Mon Sep 17 00:00:00 2001 From: Junya Ishihara Date: Mon, 2 Sep 2019 13:15:37 +0900 Subject: [PATCH] set_attribute_was is deprecated in Rails 6, so skipped it. Ref. https://github.com/mbleigh/acts-as-taggable-on/issues/955 --- lib/acts_as_taggable_on/taggable/core.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/acts_as_taggable_on/taggable/core.rb b/lib/acts_as_taggable_on/taggable/core.rb index f0d88035b..fc3662191 100644 --- a/lib/acts_as_taggable_on/taggable/core.rb +++ b/lib/acts_as_taggable_on/taggable/core.rb @@ -50,7 +50,7 @@ def #{tag_type}_list=(new_tags) parsed_new_list = ActsAsTaggableOn.default_parser.new(new_tags).parse if self.class.preserve_tag_order? || parsed_new_list.sort != #{tag_type}_list.sort - set_attribute_was('#{tag_type}_list', #{tag_type}_list) + # set_attribute_was('#{tag_type}_list', #{tag_type}_list) write_attribute("#{tag_type}_list", parsed_new_list) end @@ -314,4 +314,3 @@ def find_or_create_tags_from_list_with_context(tag_list, _context) end end end -