v2.3.8 - Show latest stable - 3 notes - Class: ActiveRecord::Base
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.

Show source
Register or log in to add new notes.
February 11, 2010
4 thanks

reload equivalent for models

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

March 31, 2011 - (>= v3.0.0)
0 thanks

reload is deprecated? what's the new alternative?

What’s the recommended alternative to reload for more recent versions of Rails?

April 4, 2011 - (>= v3.0.0)
0 thanks