Project

bulky

0.0
No commit activity in last 3 years
No release in over 3 years
Bulky allows you bulk update your ActiveRecord models. It will enqueue the bulk update and run it through the model's lifecycle to ensure validation are performed. Bulky also provides logging of bulk update success or failure.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 4.0
~> 4.2.0
~> 3.4.2
 Project Readme

Bulky

Circle CI

Installation

In your Gemfile use one of the following

  gem 'bulky', '~> 2.0.0'
  # or
  gem 'bulky', github: 'tma1/bulky'
  # or in bash run
  `git submodule add git@github.com:tma1/bulky.git vendor/bulky`
  # then add to your gemfile
  gem 'bulky', path: 'vendor/bulky'
  # users add a submodule (aka path...) need to run
  `git submodule init --update`

Then edit your

Then in your shell prompt

  bundle
  rake bulky_engine:install:migrations
  rake db:migrate
  sidekiq

Usage

Application Add a form in app/views/bulky/updates/edit.html.haml to override the one provided.

Command Line

  #                    model,   ids,     arguments for update_attributes!
  Bulky.enqueue_update(Account, [10,25], {"contact" => "Yes, please."})

This will enqueue the Bulky::Updater to update each account when the job is processed by Sidekiq