Created
August 25, 2015 15:18
-
-
Save charrisbc/7fd60e8f727bb8c4a4e2 to your computer and use it in GitHub Desktop.
Interactor Visitor debugging helper. Include in an Interactor to wrap with calls to binding.pry
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 InteractorVisitor | |
extend ActiveSupport::Concern | |
included do | |
around do |interactor| | |
binding.pry | |
'' | |
interactor.call | |
binding.pry | |
'' | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment