lib/pragma/operation/base.rb in pragma-operation-0.1.2 vs lib/pragma/operation/base.rb in pragma-operation-1.0.0

- old
+ new

@@ -7,10 +7,14 @@ # # @abstract Subclass and override {#call} to implement an operation. class Base include Interactor + include Authorization + include Validation + include Decoration + STATUSES = { 200 => :ok, 201 => :created, 202 => :accepted, 203 => :non_authoritative_information, @@ -68,12 +72,9 @@ }.freeze class << self def inherited(child) child.class_eval do - include Authorization - include Validation - before :setup_context around :handle_halt after :mark_result, :consolidate_status, :validate_status, :set_default_status end end