Skip to content

Commit ede8c19

Browse files
committed
Remove deprecated Reflection#source_macro
1 parent 9013e28 commit ede8c19

File tree

2 files changed

+4
-19
lines changed

2 files changed

+4
-19
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 `Reflection#source_macro`.
2+
3+
*Rafael Mendonça França*
4+
15
* Remove deprecated `symbolized_base_class` and `symbolized_sti_name`.
26

37
*Rafael Mendonça França*

activerecord/lib/active_record/reflection.rb

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -153,15 +153,6 @@ def join_keys(association_klass)
153153
JoinKeys.new(foreign_key, active_record_primary_key)
154154
end
155155

156-
def source_macro
157-
ActiveSupport::Deprecation.warn(<<-MSG.squish)
158-
ActiveRecord::Base.source_macro is deprecated and will be removed
159-
without replacement.
160-
MSG
161-
162-
macro
163-
end
164-
165156
def constraints
166157
scope_chain.flatten
167158
end
@@ -763,16 +754,6 @@ def join_keys(association_klass)
763754
source_reflection.join_keys(association_klass)
764755
end
765756

766-
# The macro used by the source association
767-
def source_macro
768-
ActiveSupport::Deprecation.warn(<<-MSG.squish)
769-
ActiveRecord::Base.source_macro is deprecated and will be removed
770-
without replacement.
771-
MSG
772-
773-
source_reflection.source_macro
774-
end
775-
776757
# A through association is nested if there would be more than one join table
777758
def nested?
778759
chain.length > 2

0 commit comments

Comments
 (0)