APIdock / Ruby on Rails
/
Browse About
method

save

v5.1.7 - Show latest stable - Class: ActiveRecord::AttributeMethods::Dirty
save(*)
public

Attempts to save the record and clears changed attributes if successful.

# File activerecord/lib/active_record/attribute_methods/dirty.rb, line 34
      def save(*)
        if status = super
          changes_applied
        end
        status
      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
  • private_create_record
  • private_update_record
  • privateattribute_will_change!
  • privatecache_changed_attributes
  • privatechanges_include?
  • privateclear_attribute_change
  • privateclear_changed_attributes_cache
  • privateclear_mutation_trackers
  • privateemit_warning_if_needed
  • privateforget_attribute_assignments
  • privatekeys_for_partial_write
  • privatemutation_tracker
  • privatemutations_before_last_save
  • privatemutations_from_database
  • privateprevious_mutation_tracker
APIdock API Documentation Browser

© 2026 APIdock