attachinary
attachinary copied to clipboard
Touch associated model
We make use of touch: true a lot.
@assembler, would you be open to adding belongs_to :attachinariable, touch: options[:touch] to Attachinary::File?
:+1: Caching is kind of here to stay, and this is requisite for caching to work.
Actually, I had to do the following to get cache busting:
class File < ::ActiveRecord::Base
after_create do
attachinariable.touch
end
end
+1
:+1:
+1