diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2016-07-04 02:40:16 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2016-07-04 02:48:59 +0900 |
commit | d79e99a0758bd63e3747ee8586d3630036e16831 (patch) | |
tree | 5f89584b465633ae239e1ddc68a2547fe5696127 /activerecord/lib/active_record/touch_later.rb | |
parent | ee50de03908f24c377d4842f759182fe9241c6fa (diff) | |
download | rails-d79e99a0758bd63e3747ee8586d3630036e16831.tar.gz rails-d79e99a0758bd63e3747ee8586d3630036e16831.tar.bz2 rails-d79e99a0758bd63e3747ee8586d3630036e16831.zip |
Use `squish` rather than `strip_heredoc`
Diffstat (limited to 'activerecord/lib/active_record/touch_later.rb')
-rw-r--r-- | activerecord/lib/active_record/touch_later.rb | 4 |
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 |