method
build
v5.0.0.1 -
Show latest stable
- Class:
ActiveSupport::Callbacks::Callback
build(chain, filter, kind, options)public
No documentation available.
# File activesupport/lib/active_support/callbacks.rb, line 297
def self.build(chain, filter, kind, options)
if filter.is_a?(String)
ActiveSupport::Deprecation.warn( Passing string to define callback is deprecated and will be removed in Rails 5.1 without replacement..squish)
end
new chain.name, filter, kind, options, chain.config
end