attachinary icon indicating copy to clipboard operation
attachinary copied to clipboard

Touch associated model

Open maletor opened this issue 12 years ago • 5 comments

We make use of touch: true a lot.

@assembler, would you be open to adding belongs_to :attachinariable, touch: options[:touch] to Attachinary::File?

maletor avatar Aug 08 '13 17:08 maletor

:+1: Caching is kind of here to stay, and this is requisite for caching to work.

coreyward avatar May 11 '14 20:05 coreyward

Actually, I had to do the following to get cache busting:

class File < ::ActiveRecord::Base
  after_create do
    attachinariable.touch
  end
end

coreyward avatar May 11 '14 20:05 coreyward

+1

ipatovanton avatar Jul 28 '14 19:07 ipatovanton

:+1:

benmanns avatar Feb 05 '16 23:02 benmanns

+1

brupm avatar Feb 05 '16 23:02 brupm