We've moved discussions to Discord

run_connected_callback - what am I missing?

Karl Bishop
During the omniauth connection process, run_connected_callback is called in lib\jumpstart\lib\jumpstart\omniauth\callbacks.rb

Looking at the code, I thought if I defined another method in the same file named "#{auth.provider.underscore}_connected" that it would be called by send(...)

But when I try to do this, my custom method doesn't run - the if respond_to?(method) qualifier on send(...) doesn't seem to be fulfilled.

What am I missing? Did I define the custom method in the wrong place?
Karl Bishop
Ahh wait, I got it - it's because I defined my method after the private keyword. I hadn't realised respond_to? within the current class still takes access modifiers into consideration (noob 😅)
Notifications
You’re not receiving notifications from this thread.