From ac89fd718bd8895cf7088ec0d6b38015117cf94b Mon Sep 17 00:00:00 2001 From: Ryuta Kamizono Date: Fri, 2 Mar 2018 05:40:47 +0900 Subject: 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] --- .../active_record/associations/join_dependency.rb | 21 --------------------- 1 file changed, 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 # => [# Physician - # associations # => [:appointments] - # joins # => [] - # def initialize(base, table, associations, alias_tracker, eager_loading: true) @alias_tracker = alias_tracker @eager_loading = eager_loading -- cgit v1.2.3