method

_raise_record_not_touched_error

Importance_0
v7.0.0 - Show latest stable - 0 notes - Class: ActiveRecord::Persistence
_raise_record_not_touched_error() private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/persistence.rb, line 1125
    def _raise_record_not_touched_error
      raise ActiveRecordError, <<~MSG.squish
        Cannot touch on a new or destroyed record object. Consider using
        persisted?, new_record?, or destroyed? before touching.
      MSG
    end
Register or log in to add new notes.