method
reload
v2.2.1 -
Show latest stable
-
3 notes -
Class: ActiveRecord::Base
- 1.0.0 (0)
- 1.1.6 (0)
- 1.2.6 (28)
- 2.0.3 (0)
- 2.1.0 (0)
- 2.2.1 (0)
- 2.3.8 (0)
- 3.0.0
- 3.0.9
- 3.1.0
- 3.2.1
- 3.2.8
- 3.2.13
- 4.0.2
- 4.1.8
- 4.2.1
- 4.2.7
- 4.2.9
- 5.0.0.1
- 5.1.7
- 5.2.3
- 6.0.0
- 6.1.3.1
- 6.1.7.7
- 7.0.0
- 7.1.3.2
- 7.1.3.4
- What's this?
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.
Register or
log in
to add new notes.
cghawthorne -
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.
benissimo -
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?
mcmire -
April 4, 2011 - (>= v3.0.0)
0 thanks
Moved to ActiveRecord::Persistence
This isn’t deprecated, it was just moved in Rails 3. See: