Skip to content

Commit

Permalink
set_attribute_was is deprecated in Rails 6, so skipped it.
Browse files Browse the repository at this point in the history
  • Loading branch information
champierre committed Sep 2, 2019
1 parent fbf2b60 commit d6d0a3e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/acts_as_taggable_on/taggable/core.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -314,4 +314,3 @@ def find_or_create_tags_from_list_with_context(tag_list, _context)
end
end
end

0 comments on commit d6d0a3e

Please sign in to comment.