aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations/join_dependency.rb
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2018-03-02 05:40:47 +0900
committerRyuta Kamizono <kamipo@gmail.com>2018-03-02 06:05:56 +0900
commitac89fd718bd8895cf7088ec0d6b38015117cf94b (patch)
tree0f0b97fe5d0b21f70582d85578e9d9fc691798ec /activerecord/lib/active_record/associations/join_dependency.rb
parent97742f3012c8a8564c511131164e746e4b372d9b (diff)
downloadrails-ac89fd718bd8895cf7088ec0d6b38015117cf94b.tar.gz
rails-ac89fd718bd8895cf7088ec0d6b38015117cf94b.tar.bz2
rails-ac89fd718bd8895cf7088ec0d6b38015117cf94b.zip
Remove staled comment for `JoinDependency#initialize`
This comment was added at 070dda2. That arguments has already been changed since those are internal nodoc classes, but the comment does not reflect the current state. I decided to remove the staled comment since it is not useful for understanding what the class does. [ci skip]
Diffstat (limited to 'activerecord/lib/active_record/associations/join_dependency.rb')
-rw-r--r--activerecord/lib/active_record/associations/join_dependency.rb21
1 files changed, 0 insertions, 21 deletions
diff --git a/activerecord/lib/active_record/associations/join_dependency.rb b/activerecord/lib/active_record/associations/join_dependency.rb
index df4bf07999..ac8e51ff5b 100644
--- a/activerecord/lib/active_record/associations/join_dependency.rb
+++ b/activerecord/lib/active_record/associations/join_dependency.rb
@@ -67,27 +67,6 @@ module ActiveRecord
end
end
- # base is the base class on which operation is taking place.
- # associations is the list of associations which are joined using hash, symbol or array.
- # joins is the list of all string join commands and arel nodes.
- #
- # Example :
- #
- # class Physician < ActiveRecord::Base
- # has_many :appointments
- # has_many :patients, through: :appointments
- # end
- #
- # If I execute `@physician.patients.to_a` then
- # base # => Physician
- # associations # => []
- # joins # => [#<Arel::Nodes::InnerJoin: ...]
- #
- # However if I execute `Physician.joins(:appointments).to_a` then
- # base # => Physician
- # associations # => [:appointments]
- # joins # => []
- #
def initialize(base, table, associations, alias_tracker, eager_loading: true)
@alias_tracker = alias_tracker
@eager_loading = eager_loading