Module: ModelTransporter::ControllerAdditions
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/model_transporter/controller_additions.rb
Instance Method Summary collapse
Instance Method Details
#batch_model_updates(&block) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 |
# 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 |