Skip to content

Instantly share code, notes, and snippets.

@charrisbc
Created August 25, 2015 15:16
Show Gist options
  • Save charrisbc/58c69cd2be9d58bc66fd to your computer and use it in GitHub Desktop.
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.
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