How is this different from the current way to do this in Rails? Are
you looking to allow users to use this syntax for custom callbacks
included in the plugin above and beyond the eight provided by Rails?
On Nov 21, 2006, at 6:41 PM, Patrick Crowley wrote:
I'm working on a plugin that will include allow users to
selectively apply a method to :before_save (or other ActiveRecord
callbacks, if specified).
before_save :some_action
This works, but I'd like to allow plugin users to choose their own
callback. Of course, I can do a big fat case statement, but is
there a way to use a string to set the method name?
{callback_string.convert_to_method} :some_action
Any ideas?
-- Patrick
_______________________________________________
Sdruby mailing list
[email protected]
http://lists.sdruby.com/mailman/listinfo/sdruby
_______________________________________________
Sdruby mailing list
[email protected]
http://lists.sdruby.com/mailman/listinfo/sdruby