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.
MIT License
Bot releases are hidden (Show)
Published by aaronmallen about 2 years ago
Published by aaronmallen about 2 years ago
Published by aaronmallen about 2 years ago
ActiveInteractor::Base.defer_after_callbacks_when_organized
ActiveInteractor::Organizer::Base.after_all_perform
ActiveInteractor::Organizer::Base.around_all_perform
ActiveInteractor::Organizer::Base.before_all_perform
Thank you @mjonas87 for your contribution!
Published by aaronmallen over 2 years ago
Published by aaronmallen over 2 years ago
Published by aaronmallen over 2 years ago
Published by aaronmallen almost 4 years ago
ActiveModel
and ActiveSupport
v6.1 will be the highest supported version for ActiveInteractor
v1.1.xActiveInteractor::Context::Error
compatibility with ActiveModel
v6.1Published by aaronmallen almost 4 years ago
Special thanks to @mohameddiaa27 for his contributions.
Published by aaronmallen about 4 years ago
Special thanks to @mohameddiaa27 for his contributions.
Published by aaronmallen about 4 years ago
Published by aaronmallen over 4 years ago
ActiveInteractor::Context::Base#fail!
error message gets pupulated 3 times with the same message.Published by aaronmallen over 4 years ago
ActiveInteractor::Context::Errors
ActiveInteractor::Context::Status#resolve
#classify
is called on const argumentsPublished by aaronmallen over 4 years ago
Dynamoid
ORMMongoid
ORMActiveInteractor::Models#acts_as_context
no longer includes ActiveModel::Validations
ActiveInteractor::Models#acts_as_context
now includes ActiveInteractor::Context::Attributes
ActiveInteractor::Models::InstanceMethods#merge!
Published by aaronmallen over 4 years ago
ActiveInteractor::Context::Attributes#attribute?
ActiveInteractor::Context::Attributes#has_attribute?
ActiveInteractor::Context::Base.attribute
ActiveInteractor::Context::Base.attribute_missing
ActiveInteractor::Context::Base.attribute_names
ActiveInteractor::Context::Base.method_missing
ActiveInteractor::Context::Base.respond_to?
ActiveInteractor::Context::Base.respond_to_without_attributes?
ActiveInteractor::Context::Base#attribute_missing
ActiveInteractor::Context::Base#attribute_names
ActiveInteractor::Context::Base#method_missing
ActiveInteractor::Context::Base#respond_to?
ActiveInteractor::Context::Base#respond_to_without_attributes?
ActiveInteractor::Interactor::Context#context_attribute_missing
ActiveInteractor::Interactor::Context#context_attribute_names
ActiveInteractor::Interactor::Context#context_respond_to_without_attributes?
ActiveInteractor::Interactor::Context::ClassMethods#context_attribute
ActiveInteractor::Interactor::Context::ClassMethods#context_attribute_missing
ActiveInteractor::Interactor::Context::ClassMethods#context_attribute_names
ActiveInteractor::Interactor::Context::ClassMethods#context_respond_to_without_attributes?
Published by aaronmallen over 4 years ago
ActiveInteractor::Config
ActiveInteractor::Configurable
ActiveInteractor::Context::Attributes#merge!
ActiveInteractor::Context::Base#merge
ActiveInteractor::Context::Loader
ActiveInteractor::Context::Status
ActiveInteractor::Error::InvalidContextClass
ActiveInteractor::Models
ActiveInteractor::Organizer::Callbacks
ActiveInteractor::Organizer::InteractorInterface
ActiveInteractor::Organizer::InteractorInterfaceCollection
ActiveInteractor::Organizer::Organize
ActiveInteractor::Organizer::Perform
ActiveInteractor::Interactor::Context.contextualize_with
ActiveInteractor::Interactor::Context#context_fail!
ActiveInteractor::Interactor::Context#context_rollback!
ActiveInteractor::Interactor::Context#finalize_context!
ActiveInteractor::Interactor::Perform
ActiveInteractor::Interactor::Perform::Options
ActiveInteractor::Rails
ActiveInteractor::Rails::Railtie
ActiveInteractor::Base
now calls an ActiveSupport.on_load
hook with :active_interactor
andActiveInteractor::Base
ActiveInteractor::Context::Attributes.attributes
now excepts arguments for attributesActiveInteractor::Interactor.perform
now takes optionsActiveInteractor::Interactor::Context.context_class
will now first attempt to find anActiveInteractor::Organizer
to ActiveInteractor::Organizer::Base
context_attributes
ActiveInteractor::Configuration
use ActiveInteractor::Config
ActiveInteractor::Context::Attributes.attributes=
use ActiveInteractor::Context#attributes
ActiveInteractor::Context::Attributes.attribute_aliases
ActiveInteractor::Context::Attributes.alias_attributes
ActiveInteractor::Context::Attributes#clean!
ActiveInteractor::Context::Attributes#keys
ActiveInteractor::Interactor#fail_on_invalid_context?
ActiveInteractor::Interactor#execute_rollback
ActiveInteractor::Interactor#should_clean_context?
ActiveInteractor::Interactor#skip_clean_context!
ActiveInteractor::Interactor::Callbacks.allow_context_to_be_invalid
ActiveInteractor::Interactor::Callbacks.clean_context_on_completion
ActiveInteractor::Interactor::Context.context_attribute_aliases
ActiveInteractor::Interactor::Execution
ActiveInteractor::Interactor::Worker#run_callbacks
Published by aaronmallen over 4 years ago
ActiveInteractor::Rails::Models
act_as_context
not workingActiveInteractor::Rails::ActiveRecord
Published by aaronmallen over 4 years ago
ActiveInteractor::Context::Status
ActiveInteractor::Rails::ActiveRecord
ActiveInteractor::Context::Base
into ActiveInteractor::Context::Status
Published by aaronmallen over 4 years ago
ActiveInteractor::Rails::Railtie
ActiveInteractor::Rails.config
ActiveInteractor::Rails.configure
ActiveInteractor::Railtie
use ActiveInteractor::Rails::Railtie
insteadActiveInteractor::Config#rails
use ActiveInteractor::Rails.configure
insteadPublished by aaronmallen almost 5 years ago
ActiveInteractor::Organizer::InteractorInterface
ActiveInteractor::Organizer::InteractorInterfaceCollection
ActiveInteractor::Interactor#options
ActiveInteractor::Interactor#with_options
ActiveInteractor::Interactor::PerformOptions#skip_each_perform_callbacks
ActiveInteractor::Interactor::Worker#execute_perform
and #execute_perform!
no longer accept arguments,ActiveInteractor::Interactor#with_options
instead.ActiveInteractor::Organizer
can now skip each_perform
callbacks withskip_each_perform_callbacks
ActiveInteractor::Interactor#execute_rollback
ActiveInteractor::Interactor::Worker#run_callbacks