module Refile::Backgrounder::ActiveRecord
Public Instance Methods
attachment(name, background: false, worker: Refile::Backgrounder::StoreWorker, **options)
click to toggle source
Calls superclass method
# File lib/refile/backgrounder/activerecord.rb, line 5 def attachment(name, background: false, worker: Refile::Backgrounder::StoreWorker, **options) super name, **options return unless background attr_accessor :_skip_refile_backgrounder after_save(unless: :_skip_refile_backgrounder) do |record| worker.perform_later record, name.to_s end end