How can I get notification when RailsApp instance is updated?

I develop a plugin for RubyMine and I use instance of RailsApp class to get the list of all available controller methods. I'd like to update some information as soon as this list is updated. Is there any listener/callback that is invoked each time contents of RailsApp instance is updated?

Thank you.

1 comment
Comment actions Permalink

RailsApp is not a long-living instance; it's created at the moment you need to perform some operation and discarded after the operation is completed. Because of that, it does not listen for any changes, and does not notify anyone about the changes. If you need to detect the changes in the list of controller methods, you need to use the regular PSI listener and look for changes in the PSI of the controller class.


Please sign in to leave a comment.