public Method

ClassMethods.condition_block?(condition)

There's no documentation for this item.

Source Code

# File active_record/validations.rb, line 342
def condition_block?(condition)
  condition.respond_to?("call") && (condition.arity == 1 || condition.arity == -1)
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.