File tree Expand file tree Collapse file tree 5 files changed +6
-22
lines changed Expand file tree Collapse file tree 5 files changed +6
-22
lines changed Original file line number Diff line number Diff line change
1
+ * Remove deprecated ` ActiveRecord::Base.arel_attribute ` .
2
+
3
+ * Rafael Mendonça França*
4
+
1
5
* Remove deprecated ` ActiveRecord::Base.connection_config ` .
2
6
3
7
* Rafael Mendonça França*
Original file line number Diff line number Diff line change @@ -421,11 +421,6 @@ def arel_table # :nodoc:
421
421
@arel_table ||= Arel ::Table . new ( table_name , klass : self )
422
422
end
423
423
424
- def arel_attribute ( name , table = arel_table ) # :nodoc:
425
- table [ name ]
426
- end
427
- deprecate :arel_attribute
428
-
429
424
def predicate_builder # :nodoc:
430
425
@predicate_builder ||= PredicateBuilder . new ( table_metadata )
431
426
end
Original file line number Diff line number Diff line change @@ -41,11 +41,6 @@ def initialize_copy(other)
41
41
reset
42
42
end
43
43
44
- def arel_attribute ( name ) # :nodoc:
45
- table [ name ]
46
- end
47
- deprecate :arel_attribute
48
-
49
44
def bind_attribute ( name , value ) # :nodoc:
50
45
if reflection = klass . _reflect_on_association ( name )
51
46
name = reflection . foreign_key
Original file line number Diff line number Diff line change @@ -95,18 +95,6 @@ def test_arel_attribute_normalization
95
95
assert_equal Post . arel_table [ "body" ] , Post . arel_table [ :text ]
96
96
end
97
97
98
- def test_deprecated_arel_attribute
99
- assert_deprecated do
100
- assert_equal Post . arel_table [ "body" ] , Post . arel_attribute ( :body )
101
- end
102
- end
103
-
104
- def test_deprecated_arel_attribute_on_relation
105
- assert_deprecated do
106
- assert_equal Post . arel_table [ "body" ] , Post . all . arel_attribute ( :body )
107
- end
108
- end
109
-
110
98
def test_incomplete_schema_loading
111
99
topic = Topic . first
112
100
payload = { foo : 42 }
Original file line number Diff line number Diff line change @@ -256,6 +256,8 @@ Please refer to the [Changelog][active-job] for detailed changes.
256
256
257
257
* Remove deprecated ` ActiveRecord::Base.connection_config` .
258
258
259
+ * Remove deprecated ` ActiveRecord::Base.arel_attribute` .
260
+
259
261
# ## Deprecations
260
262
261
263
* Deprecated ` Rails.config.active_job.skip_after_callbacks_if_terminated` .
You can’t perform that action at this time.
0 commit comments