Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v6.1.7.7) is shown here.
inverted_lambda()
public
Return a lambda that will make this call when given the input values, but
then return the boolean inverse of that result.
# File activesupport/lib/active_support/callbacks.rb, line 433
def inverted_lambda
lambda do |target, value, &block|
target, block, method, *arguments = expand(target, value, block)
! target.send(method, *arguments, &block)
end
end