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
15 def recache
16   if cached?
17     result = upload(file, cache_key, action: :recache)
18 
19     set(result)
20   end
21 end
save()
[show source]
   # File lib/shrine/plugins/recache.rb
10 def save
11   recache
12   super
13 end