Skip to content
This repository was archived by the owner on Dec 29, 2024. It is now read-only.

v1.0.0

Choose a tag to compare

@aaronmallen aaronmallen released this 26 Jan 09:56
dbc1b79

Added

  • 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

Changed

  • ActiveInteractor::Base now calls an ActiveSupport.on_load hook with :active_interactor and
    ActiveInteractor::Base
  • ActiveInteractor::Context::Attributes.attributes now excepts arguments for attributes
  • ActiveInteractor::Interactor.perform now takes options
  • ActiveInteractor::Interactor::Context.context_class will now first attempt to find an
    existing context class, and only create a new context class if a context is not found.
  • Moved ActiveInteractor::Organizer to ActiveInteractor::Organizer::Base
  • interactor, organizer, and context generators now accept context_attributes
    as arguments.

Fixed

  • various rails generator fixes

Removed

  • 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