Is there a way to access an object within callbacks defined with
set_callback (ActiveSupport 3.0.0-beta4, matching Rails 3)?
Use case is as follow:
set_callback :handle_response, :after do |response|
# play with the response
# some stuff...
run_callbacks :handle_response do
# this request returns a response
Currently, in place of |response|, I have |object| as the doc suggests,
which is the class object at runtime. AS callbacks are great for
after/before/around independant processing, but can they be used for
data manipulation hooks? If not, is there an alternative to achieve such