method
_raise_record_not_touched_error
v6.1.3.1 -
Show latest stable
- Class:
ActiveRecord::Persistence
_raise_record_not_touched_error()private
No documentation available.
# File activerecord/lib/active_record/persistence.rb, line 958
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