Loading…

How are Observers and Callbacks different from each other?

Observers are the same as Callback, but they are used when the method is not directly associated with the object. The observer lives longer, and can be detached or attached at any time.

Callbacks are methods that can be called only at certain moments of an object’s lifecycle. Callbacks live shorter.

Suggest An Answer

No suggestions avaliable!

Latest post from Ruby on rails interview questions

Ask Question