method

add_on_empty

Importance_1
v2.0.3 - Show latest stable - 0 notes - Class: ActiveRecord::Errors
add_on_empty(attributes, msg = @@default_error_messages[:empty]) public

Will add an error message to each of the attributes in attributes that is empty.

Show source
Register or log in to add new notes.