Skip to content

Commit 5eddf5e

Browse files
committed
Remove deprecated ActiveRecord::Base.allow_unsafe_raw_sql
1 parent 1f3cfb2 commit 5eddf5e

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

activerecord/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
* Remove deprecated `ActiveRecord::Base.allow_unsafe_raw_sql`.
2+
3+
*Rafael Mendonça França*
4+
15
* Fix regression bug that caused ignoring additional conditions for preloading has_many-through relations.
26

37
Fixes #43132

activerecord/lib/active_record/core.rb

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -229,14 +229,6 @@ def self.connection_classes # :nodoc:
229229
klass
230230
end
231231

232-
def self.allow_unsafe_raw_sql # :nodoc:
233-
ActiveSupport::Deprecation.warn("ActiveRecord::Base.allow_unsafe_raw_sql is deprecated and will be removed in Rails 7.0")
234-
end
235-
236-
def self.allow_unsafe_raw_sql=(value) # :nodoc:
237-
ActiveSupport::Deprecation.warn("ActiveRecord::Base.allow_unsafe_raw_sql= is deprecated and will be removed in Rails 7.0")
238-
end
239-
240232
self.default_connection_handler = ConnectionAdapters::ConnectionHandler.new
241233
self.default_role = ActiveRecord.writing_role
242234
self.default_shard = :default

guides/source/7_0_release_notes.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ Please refer to the [Changelog][active-record] for detailed changes.
100100

101101
* Remove deprecated `database` kwarg from `connected_to`.
102102

103+
* Remove deprecated `ActiveRecord::Base.allow_unsafe_raw_sql`.
104+
103105
### Deprecations
104106

105107
### Notable changes

0 commit comments

Comments
 (0)