This gem will produce a call graph using Graphviz.
require 'visual_call_graph'
VisualCallGraph.trace { Users.all }
https://www.rubyguides.com/2017/01/spy-on-your-ruby-methods/
Visual Call Graph will help you visualize how a method works by creating a call graph of all the other methods called.
Ruby
This gem will produce a call graph using Graphviz.
require 'visual_call_graph'
VisualCallGraph.trace { Users.all }
https://www.rubyguides.com/2017/01/spy-on-your-ruby-methods/