method
validation_method
validation_method(on)
private
Hide source
# File activerecord/lib/active_record/validations.rb, line 723 def validation_method(on) case on when :save then :validate when :create then :validate_on_create when :update then :validate_on_update end end