method

set_callbacks

Importance_0
v7.1.3.4 - 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 975
          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.