Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 576 Bytes

README.md

File metadata and controls

32 lines (22 loc) · 576 Bytes

WorkerPlugins

Install

Add to your Gemfile and bundle:

gem 'worker_plugins'

Install migrations (only necessary sometimes - try running rails db:migrate first before installing migrations):

rails worker_plugins:install:migrations

Usage

Add a lot of objects to a workspace through transactions:

users = User.where('id > 0')
workspace.add_links_to_objects(users)

Optimally loop over resources on a workspace:

workspace.each_resource(types: ['User']) do |user|

License

This project rocks and uses MIT-LICENSE.