module ModelTransporter::ControllerAdditions
Public Instance Methods
batch_model_updates(&block)
click to toggle source
# File lib/model_transporter/controller_additions.rb, line 9 def batch_model_updates(&block) if ModelTransporter.configuration.actor actor = Proc.new do ModelTransporter.configuration.actor.to_proc.call(self) end end ModelTransporter::BatchModelUpdates.with_transporter_actor(actor) do ModelTransporter::BatchModelUpdates.batch_model_updates(&block) end end