module Shrine::Plugins::Recache::AttacherMethods

  1. lib/shrine/plugins/recache.rb

Methods

Public Instance

  1. recache
  2. save

Public Instance methods

recache ()
[show source]
# File lib/shrine/plugins/recache.rb, line 31
def recache
  if cached?
    recached = cache!(get, action: :recache)
    _set(recached)
  end
end
save ()
[show source]
# File lib/shrine/plugins/recache.rb, line 26
def save
  recache
  super
end