Perhaps the reason rajat doesn't make sense, but the question really is.
I need to do some maintenance, and I need to execute a function inside the class. A workaround is that every moment is fixed (for example, migration), and it is not necessary to do it properly.
This may be caused by calling url instead of calling rake (with the appropriate route and parameter settings).
This can be done by defining functions outside the class (making it publicly available).
Or it can be done, as suggested by William Richerd, who, incidentally, works.
juanmah
source share