aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations/join_dependency.rb
diff options
context:
space:
mode:
authorPrem Sichanugrist <s@sikac.hu>2013-11-11 13:53:54 -0500
committerPrem Sichanugrist <s@sikac.hu>2013-11-11 13:53:54 -0500
commitefff6c1fd4b9e2e4c9f705a45879373cb34a5b0e (patch)
tree88592ddf445e74bab4d918481cc377cb384f6c03 /activerecord/lib/active_record/associations/join_dependency.rb
parent83271a64f961e8138bf1e125251860333ba88f72 (diff)
downloadrails-efff6c1fd4b9e2e4c9f705a45879373cb34a5b0e.tar.gz
rails-efff6c1fd4b9e2e4c9f705a45879373cb34a5b0e.tar.bz2
rails-efff6c1fd4b9e2e4c9f705a45879373cb34a5b0e.zip
Change syntax format for example returned values
According to our guideline, we leave 1 space between `#` and `=>`, so we want `# =>` instead of `#=>`. Thanks to @fxn for the suggestion. [ci skip]
Diffstat (limited to 'activerecord/lib/active_record/associations/join_dependency.rb')
-rw-r--r--activerecord/lib/active_record/associations/join_dependency.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/activerecord/lib/active_record/associations/join_dependency.rb b/activerecord/lib/active_record/associations/join_dependency.rb
index c3ac0680ea..3e743c4bfe 100644
--- a/activerecord/lib/active_record/associations/join_dependency.rb
+++ b/activerecord/lib/active_record/associations/join_dependency.rb
@@ -83,14 +83,14 @@ module ActiveRecord
# end
#
# If I execute `@physician.patients.to_a` then
- # base #=> Physician
- # associations #=> []
- # joins #=> [#<Arel::Nodes::InnerJoin: ...]
+ # base # => Physician
+ # associations # => []
+ # joins # => [#<Arel::Nodes::InnerJoin: ...]
#
# However if I execute `Physician.joins(:appointments).to_a` then
- # base #=> Physician
- # associations #=> [:appointments]
- # joins #=> []
+ # base # => Physician
+ # associations # => [:appointments]
+ # joins # => []
#
def initialize(base, associations, joins)
@alias_tracker = AliasTracker.new(base.connection, joins)