Shrine 3.10.1
Bug fixes
-
Since Shrine 3.9.0, the
remove_invalidplugin would raiseNoMethodErrorwhen validation failed on an attacher without a record and themodelplugin was loaded (directly or through theactiverecord/sequelplugins).attacher = Shrine::Attacher.new attacher.assign(invalid_file) # NoMethodError: undefined method '=' for nilAttacher#writefrom themodelplugin 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.