Created
August 25, 2015 15:16
-
-
Save charrisbc/58c69cd2be9d58bc66fd to your computer and use it in GitHub Desktop.
OrganizerVisitor debugging helper. Include in an Interactor::Organizer to wrap each interactor in binding.pry calls.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module OrganizerVisitor | |
extend ActiveSupport::Concern | |
included do | |
def call | |
self.class.organized.each do |interactor| | |
binding.pry | |
'' | |
interactor.call!(context) | |
binding.pry | |
'' | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment