Upgrade Rails to 7.2.0
- Remove deprecated support to set Rails.application.config.action_dispatch.show_exceptions to true and false.
Exception won’t be raised in specs
1
2
3
# Raise exceptions instead of rendering exception templates.
- config.action_dispatch.show_exceptions = false
+ config.action_dispatch.show_exceptions = :none
- SQL generated is changed
1
2
- if link = where('course_ids @> \'{?}\'', course.id).first
+ if link = where('course_ids @> ARRAY[?]::bigint[]', course.id).first
- no lock_thread
1
2
NoMethodError: undefined method `lock_thread=' for an instance of ActiveRecord::ConnectionAdapters::ConnectionPool
1
2
- ActiveRecord::Base.connection.pool.lock_thread = false
+ # ActiveRecord::Base.connection.pool.lock_thread = false
- assert_enqueued_email_with: args vs. params
1
2
- assert_enqueued_email_with UserMailer, :invitation, args: { invitation: invitation }
+ assert_enqueued_email_with UserMailer, :invitation, params: { invitation: invitation }
This post is licensed under CC BY 4.0 by the author.