You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Shrine::Error: unknown version: "id"`
from: /Users/michal/.rvm/gems/ruby-2.2.1/bundler/gems/shrine-01f20b64ef4a/lib/shrine/plugins/versions.rb" line 105 in block in versions!
If I go back to earlier revision 3ab14cb1ad71e1254b025bf4ae721c3fed52a16f the code works.
The text was updated successfully, but these errors were encountered:
Yes, this was actually one of the documented breaking changes that version 1.0.0 introduced (the mentioned commit was prior to version 1.0.0). Prior to that version, cached files could be accepted as a hash or a JSON string. However, I didn't consider that essential functionality, and it was introducing problems when I was trying to write a plugin for multiple file uploads, so I extracted it out into a plugin for easier maintenance.
To get the old behaviour, just do Shrine.plugin :parsed_json in your initializer. Alternatively you could just send the cached file data as a JSON string instead of a hash.
This used to work
With attributes passed being
Now I get
If I go back to earlier revision
3ab14cb1ad71e1254b025bf4ae721c3fed52a16f
the code works.The text was updated successfully, but these errors were encountered: