Hi, I've set up several ActiveModel callbacks an run them via
_run_whatever_callbacks do .. some code end Now i would like to run the before_whatever and after_whatever independently, aka _run_before_whatever_callbacks. Is that somehow possible? I need that for running the callbacks on a set ob sub-objects, and i dont know how to nest the blocks dynamically (without any crazy hacks :-). in short, I'd like to do something like that: subobjects.each { |obj| obj._run_before_whatever_callbacks } ... some code subobjects.each { |obj| obj._run_after_whatever_callbacks } Thanks, Robert -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.