method

cache_changed_attributes

rails latest stable - Class: ActiveModel::Dirty

Method deprecated or moved

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

cache_changed_attributes()
private

No documentation available.

# File activemodel/lib/active_model/dirty.rb, line 279
      def cache_changed_attributes
        @cached_changed_attributes = changed_attributes
        yield
      ensure
        clear_changed_attributes_cache
      end