method

build

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: ActiveSupport::Callbacks::Callback
build(chain, filter, kind, options) public

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 284
        def self.build(chain, filter, kind, options)
          if filter.is_a?(String)
            raise ArgumentError,               Passing string to define a callback is not supported. See the `.set_callback`              documentation to see supported values..squish
          end

          new chain.name, filter, kind, options, chain.config
        end
Register or log in to add new notes.