module Shrine::Plugins::CachedAttachmentData::AttacherMethods

  1. lib/shrine/plugins/cached_attachment_data.rb

Methods

Public Instance

  1. cached_data

Public Instance methods

cached_data()
[show source]
   # File lib/shrine/plugins/cached_attachment_data.rb
18 def cached_data
19   file.to_json if cached? && changed?
20 end