method
reload
v5.1.7 -
Show latest stable
- Class:
ActiveRecord::AttributeMethods::Dirty
reload(*)public
# File activerecord/lib/active_record/attribute_methods/dirty.rb, line 49
def reload(*)
super.tap do
@previous_mutation_tracker = nil
clear_mutation_trackers
@changed_attributes = ActiveSupport::HashWithIndifferentAccess.new
end
end Related methods
- Instance methods
- attribute_before_last_save
- attribute_change
- attribute_change_to_be_saved
- attribute_changed?
- attribute_changed_in_place?
- attribute_in_database
- attribute_was
- attributes_in_database
- changed
- changed?
- changed_attribute_names_to_save
- changed_attributes
- changes
- changes_applied
- changes_internally_applied
- changes_to_save
- clear_attribute_changes
- clear_changes_information
- has_changes_to_save?
- initialize_dup
- previous_changes
- raw_write_attribute
- reload
- save
- save!
- saved_change_to_attribute
- saved_change_to_attribute?
- saved_changes
- saved_changes?
- will_save_change_to_attribute?
- Private methods
-
_create_record -
_update_record -
attribute_will_change! -
cache_changed_attributes -
changes_include? -
clear_attribute_change -
clear_changed_attributes_cache -
clear_mutation_trackers -
emit_warning_if_needed -
forget_attribute_assignments -
keys_for_partial_write -
mutation_tracker -
mutations_before_last_save -
mutations_from_database -
previous_mutation_tracker