method

reload

Importance_3
Ruby on Rails latest stable (v7.1.3.2) - 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