An implementation of the command pattern for Ruby with ActiveModel::Validations inspired by the interactor gem. Rich support for attributes, callbacks, and validations, and thread safe performance methods.
- Context validation
- Thread safe performance calls
- Organize multiple interactors conditionally or in parallel
Be sure to read the wiki for detailed information on how to use ActiveInteractor.
For technical documentation please see the gem's ruby docs.
Add this line to your application's Gemfile:
gem 'activeinteractor', require: 'active_interactor'
Or install it yourself as:
gem install activeinteractor
Read our guidelines for Contributing.
ActiveInteractor is made possible by wonderful humans.
The gem is available as open source under the terms of the MIT License.