On 03/13/2013 03:06 AM, Craig Ringer wrote: > I think I could hot-insert the method into RT::Users with something like: > > { > package RT::Users; > sub WhoBelongToGroupsIncludingPrivileged { > # .... > } > } > > in my module. It doesn't have to be visible to other modules, so it'd > essentially be a method of RT::Users that's private to my extension.
That injects the method into RT::Users. It will override the existing method and all code will use it once your extension is loaded. It is not private, as you describe. -- RT training in Amsterdam, March 20-21: http://bestpractical.com/services/training.html Help improve RT by taking our user survey: https://www.surveymonkey.com/s/N23JW9T