I have been using motion-kit-events for a while now. I am currently building a messaging app and thought it would be nice if I can integrate this gem's functionality into a class that is not a layout. For example, when a message is received, I would trigger a :message_received event to the controller. I mean, I don't think the functionality of this gem should depend on the object being kind_of?(MK::Layout).
I have been using motion-kit-events for a while now. I am currently building a messaging app and thought it would be nice if I can integrate this gem's functionality into a class that is not a layout. For example, when a message is received, I would trigger a
:message_receivedevent to the controller. I mean, I don't think the functionality of this gem should depend on the object beingkind_of?(MK::Layout).