method

reload

rails latest stable - Class: ActiveRecord::Base

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here.

reload(options = nil)
public

Reloads the attributes of this object from the database. The optional options argument is passed to find when reloading so you may do e.g. record.reload(:lock => true) to reload the same record with an exclusive row lock.

1Note

reload equivalent for models

cghawthorne ยท Feb 11, 20104 thanks

The reset_column_information method provides a similar function for the model itself. Most useful during migrations.