method

previous_changes

rails latest stable - Class: ActiveRecord::AttributeMethods::Dirty

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v5.1.7) is shown here.

previous_changes()
public

No documentation available.

# File activerecord/lib/active_record/attribute_methods/dirty.rb, line 116
      def previous_changes # :nodoc:
        unless previous_mutation_tracker.equal?(mutations_before_last_save)
          ActiveSupport::Deprecation.warn(            The behavior of `previous_changes` inside of after callbacks is            deprecated without replacement. In the next release of Rails,            this method inside of `after_save` will return the changes that            were just saved..strip_heredoc)
        end
        previous_mutation_tracker.changes
      end