Hey guys, quick question,
What’s the easiest way in rail to check which action called another
method?
For example, say I wanted to run a method inside a method but only if
called by a specific top method.
i.e
def method_1
Only run if called by a specific method
if == “specific method”
method_2()
end
end
Thanks