Skip to content

Commit

Permalink
Rails 5.2-compliant change writer
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirill Shirinkin committed May 18, 2018
1 parent 7b4911a commit aac3250
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/acts_as_taggable_on/taggable/core.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,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
#{tag_type}_list_will_change!
set_attribute_was('#{tag_type}_list', #{tag_type}_list)
write_attribute("#{tag_type}_list", parsed_new_list)
end
Expand Down

0 comments on commit aac3250

Please sign in to comment.