Module: Shrine::Plugins::CachedAttachmentData::AttacherMethods

Defined in:
lib/shrine/plugins/cached_attachment_data.rb

Instance Method Summary collapse

Instance Method Details

#cached_dataObject


18
19
20
# File 'lib/shrine/plugins/cached_attachment_data.rb', line 18

def cached_data
  file.to_json if cached? && changed?
end