search for: define_callback

Displaying 2 results from an estimated 2 matches for "define_callback".

Did you mean: define_callbacks
2013 Aug 21
3
syntax error, unexpected tRPAREN raised in server log
In my server log, I am seeing this error message that is raised in activesupport. 2013-08-12T23:06:08.932580+00:00 app[web.2]: SyntaxError (/app/vendor/bundle/jruby/1.9/gems/activesupport-4.0.0/lib/active_support/callbacks.rb:374: syntax error, unexpected tRPAREN 2013-08-12T23:06:08.932580+00:00 app[web.2]: 2013-08-12T23:06:08.932580+00:00 app[web.2]: def () value = nil
2010 Jun 29
0
Rails 3 and ActiveSupport::Callbacks
Hi. 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: require ''active_support'' class Foo include ActiveSupport::Callbacks define_callbacks :handle_response set_callback :handle_response, :after do |response| # play with the response end # some stuff... def list_users run_callbacks :handle_response do # this request returns a response @someapi.get("/some/resource&quot...