reload(options = nil)
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.
# File activerecord/lib/active_record/persistence.rb, line 202 def reload(options = nil) clear_aggregation_cache clear_association_cache @attributes.update(self.class.unscoped { self.class.find(self.id, options) }.instance_variable_get('@attributes')) @attributes_cache = {} self end