Skip to content

Commit

Permalink
Remove deprecated Reflection#source_macro
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelfranca committed Jan 4, 2015
1 parent 9013e28 commit ede8c19
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 19 deletions.
4 changes: 4 additions & 0 deletions activerecord/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
* Remove deprecated `Reflection#source_macro`.

*Rafael Mendonça França*

* Remove deprecated `symbolized_base_class` and `symbolized_sti_name`.

*Rafael Mendonça França*
Expand Down
19 changes: 0 additions & 19 deletions activerecord/lib/active_record/reflection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -153,15 +153,6 @@ def join_keys(association_klass)
JoinKeys.new(foreign_key, active_record_primary_key)
end

def source_macro
ActiveSupport::Deprecation.warn(<<-MSG.squish)
ActiveRecord::Base.source_macro is deprecated and will be removed
without replacement.
MSG

macro
end

def constraints
scope_chain.flatten
end
Expand Down Expand Up @@ -763,16 +754,6 @@ def join_keys(association_klass)
source_reflection.join_keys(association_klass)
end

# The macro used by the source association
def source_macro
ActiveSupport::Deprecation.warn(<<-MSG.squish)
ActiveRecord::Base.source_macro is deprecated and will be removed
without replacement.
MSG

source_reflection.source_macro
end

# A through association is nested if there would be more than one join table
def nested?
chain.length > 2
Expand Down

0 comments on commit ede8c19

Please sign in to comment.