private Method

ClassMethods.validation_method(on)

There's no documentation for this item.

Source Code

# File active_record/validations.rb, line 921
def validation_method(on)
  case on
    when :save   then :validate
    when :create then :validate_on_create
    when :update then :validate_on_update
  end
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.