Remove deprecated `ActiveRecord::Base.allow_unsafe_raw_sql`

This commit is contained in:
Rafael Mendonça França 2021-11-16 15:02:35 -05:00
parent 1f3cfb272c
commit 5eddf5e9b4
No known key found for this signature in database
GPG Key ID: FC23B6D0F1EEE948
3 changed files with 6 additions and 8 deletions

View File

@ -1,3 +1,7 @@
* Remove deprecated `ActiveRecord::Base.allow_unsafe_raw_sql`.
*Rafael Mendonça França*
* Fix regression bug that caused ignoring additional conditions for preloading has_many-through relations.
Fixes #43132

View File

@ -229,14 +229,6 @@ module ActiveRecord
klass
end
def self.allow_unsafe_raw_sql # :nodoc:
ActiveSupport::Deprecation.warn("ActiveRecord::Base.allow_unsafe_raw_sql is deprecated and will be removed in Rails 7.0")
end
def self.allow_unsafe_raw_sql=(value) # :nodoc:
ActiveSupport::Deprecation.warn("ActiveRecord::Base.allow_unsafe_raw_sql= is deprecated and will be removed in Rails 7.0")
end
self.default_connection_handler = ConnectionAdapters::ConnectionHandler.new
self.default_role = ActiveRecord.writing_role
self.default_shard = :default

View File

@ -100,6 +100,8 @@ Please refer to the [Changelog][active-record] for detailed changes.
* Remove deprecated `database` kwarg from `connected_to`.
* Remove deprecated `ActiveRecord::Base.allow_unsafe_raw_sql`.
### Deprecations
### Notable changes