[DRE-maint] Bug#958445: ruby-attr-encrypted fix

Karel Pičman Karel.Picman at kontron.com
Tue Jul 14 08:06:13 BST 2020


In ruby-acts-as-taggable-on 6.5.0-2~bpo10+1 package has already been the problem fixed. In ruby-attr-encrypted has helped me the following workaround directly in the source code (taken from ruby-acts-as-taggable-on's fix):

Line 84 in /usr/lib/ruby/vendor_ruby/attr_encrypted/adapters/active_record.rb

#set_attribute_was(attr, __send__(attr)) if value != __send__(attr)
if ActiveRecord.version <= Gem::Version.new('5.3.0')
  set_attribute_was(attr, __send__(attr)) if value != __send__(attr)
else
  unless #{attr}_changed?
    @attributes[attr] = ActiveModel::Attribute.from_user(attr, __send__(attr), ActsAsTaggableOn::Taggable::TagListType.new)
  end
end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-ruby-extras-maintainers/attachments/20200714/6ae718b5/attachment.html>


More information about the Pkg-ruby-extras-maintainers mailing list