Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove doc for debugging callbacks. Methods don't exist in Rails master

  • Loading branch information...
commit aec5ef243a0c85a9e3bafa89ce873d3837a6ce59 1 parent 6f4d00c
@rafaelfranca rafaelfranca authored
Showing with 0 additions and 10 deletions.
  1. +0 −10 activerecord/lib/active_record/callbacks.rb
View
10 activerecord/lib/active_record/callbacks.rb
@@ -218,16 +218,6 @@ module ActiveRecord
# needs to be aware of it because an ordinary +save+ will raise such exception
# instead of quietly returning +false+.
#
- # == Debugging callbacks
- #
- # To list the methods and procs registered with a particular callback, append <tt>_callback_chain</tt> to
- # the callback name that you wish to list and send that to your class from the Rails console:
- #
- # >> Topic.after_save_callback_chain
- # => [#<ActiveSupport::Callbacks::Callback:0x3f6a448
- # @method=#<Proc:0x03f9a42c@/Users/foo/bar/app/models/topic.rb:43>, kind:after_save, identifiernil,
- # options{}]
- #
module Callbacks
extend ActiveSupport::Concern

1 comment on commit aec5ef2

@rafamvc

So, if you need to debug the callbacks, what you should use now?

Valeu irmão! :)

Please sign in to comment.
Something went wrong with that request. Please try again.