aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/touch_later.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/lib/active_record/touch_later.rb')
-rw-r--r--activerecord/lib/active_record/touch_later.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/touch_later.rb b/activerecord/lib/active_record/touch_later.rb
index 5c41ab6e39..598873ea3a 100644
--- a/activerecord/lib/active_record/touch_later.rb
+++ b/activerecord/lib/active_record/touch_later.rb
@@ -9,10 +9,10 @@ module ActiveRecord
def touch_later(*names) # :nodoc:
unless persisted?
- raise ActiveRecordError, <<-end_error.strip_heredoc
+ raise ActiveRecordError, <<-MSG.squish
cannot touch on a new or destroyed record object. Consider using
persisted?, new_record?, or destroyed? before touching
- end_error
+ MSG
end
@_defer_touch_attrs ||= timestamp_attributes_for_update_in_model