Remove deprecated `ActiveRecord::Base.allow_unsafe_raw_sql`
This commit is contained in:
parent
1f3cfb272c
commit
5eddf5e9b4
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue