I want to add an after_create
callback to Role model by my plugin. So I can add an after_callback :my_private_method
by class_eval
as usual. I can add public method by defining it in InstanceMethods
in the module that mixined in Role model.
But how I can add a private method my_private_method
to Role model for using in after_create
callback?
I know that this can be implemented by class_eval
but is there any nicer solution?