lib/metaractor.rb in metaractor-0.5.0 vs lib/metaractor.rb in metaractor-1.1.0

- old
+ new

@@ -1,11 +1,14 @@ require 'metaractor/version' require 'interactor' require 'metaractor/errors' +require 'metaractor/context_errors' require 'metaractor/parameters' require 'metaractor/run_with_context' require 'metaractor/context_validity' +require 'metaractor/chain_failures' +require 'metaractor/fail_from_context' module Metaractor def self.included(base) base.class_eval do include Interactor @@ -34,10 +37,11 @@ def self.default_modules [ { module: Metaractor::Errors, method: :include }, { module: Metaractor::Parameters, method: :include }, - { module: Metaractor::RunWithContext, method: :include } + { module: Metaractor::RunWithContext, method: :include }, + { module: Metaractor::ChainFailures, method: :include } ] end def self.include_module(mod) modules << { module: mod, method: :include }