When I take existing model with assigned
file, I expect to get
file_data_uri with base64, while using
plugin :data_uri. Instead it returns nothing, as first of all attacher must assign a data so the data could be returned from the reader.
Can you please explain this behaviour?
file_data_uri returns existing file data, so I can return it via
Ruby version: 2.6.5
Shrine version: 3.0.1
data_uri writer changes chached version, so it could be updated once the record is saved, but why there are no possibility to read data directly from the file in case if there were no new changes?
def data_uri @data_uri || file.data_uri end