method

set_callbacks

Importance_0
v7.0.0 - Show latest stable - 0 notes - Class: ClassMethods
set_callbacks(name, callbacks) protected

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activesupport/lib/active_support/callbacks.rb, line 952
          def set_callbacks(name, callbacks) # :nodoc:
            unless singleton_class.method_defined?(:__callbacks, false)
              self.__callbacks = __callbacks.dup
            end
            self.__callbacks[name.to_sym] = callbacks
            self.__callbacks
          end
Register or log in to add new notes.