β
title: Shrine 3.10.1
Bug fixes
-
Since
Shrine3.9.0, theremove_invalidplugin would raiseNoMethodErrorwhen validation failed on an attacher without a record and themodelplugin was loaded (directly or through theactiverecord/sequelplugins).
rb attacher = Shrine::Attacher.new attacher.assign(invalid_file) # NoMethodError: undefined method '=' for nil
Attacher#write from the model plugin is now a no-op when the attacher isnβt backed by a model, so the invalid file is removed and validation errors are kept as before.