Skip to content
Browse files

Use a space after the comment sign when showing the result of commands

  • Loading branch information...
1 parent 507812f commit 249876b99bd518f93f5a9f8ae6c4ed7d6fb02936 @carlosantoniodasilva carlosantoniodasilva committed Apr 4, 2013
Showing with 4 additions and 4 deletions.
  1. +4 −4 activerecord/lib/active_record/reflection.rb
View
8 activerecord/lib/active_record/reflection.rb
@@ -409,7 +409,7 @@ class ThroughReflection < AssociationReflection #:nodoc:
# tags_reflection = Post.reflect_on_association(:tags)
#
# taggings_reflection = tags_reflection.source_reflection
- # #=> <ActiveRecord::Reflection::AssociationReflection: @macro=:belongs_to, @name=:tag, @active_record=Tagging, @plural_name="tags">
+ # # => <ActiveRecord::Reflection::AssociationReflection: @macro=:belongs_to, @name=:tag, @active_record=Tagging, @plural_name="tags">
#
def source_reflection
@source_reflection ||= source_reflection_names.collect { |name| through_reflection.klass.reflect_on_association(name) }.compact.first
@@ -444,8 +444,8 @@ def through_reflection
#
# tags_reflection = Post.reflect_on_association(:tags)
# tags_reflection.chain
- # #=> [<ActiveRecord::Reflection::ThroughReflection: @macro=:has_many, @name=:tags, @options={:through=>:taggings}, @active_record=Post>,
- # <ActiveRecord::Reflection::AssociationReflection: @macro=:has_many, @name=:taggings, @options={}, @active_record=Post>]
+ # # => [<ActiveRecord::Reflection::ThroughReflection: @macro=:has_many, @name=:tags, @options={:through=>:taggings}, @active_record=Post>,
+ # <ActiveRecord::Reflection::AssociationReflection: @macro=:has_many, @name=:taggings, @options={}, @active_record=Post>]
#
def chain
@chain ||= begin
@@ -526,7 +526,7 @@ def association_primary_key(klass = nil)
#
# tags_reflection = Post.reflect_on_association(:tags)
# tags_reflection.source_reflection_names
- # #=> [:tag, :tags]
+ # # => [:tag, :tags]
#
def source_reflection_names
@source_reflection_names ||= (options[:source] ? [options[:source]] : [name.to_s.singularize, name]).collect { |n| n.to_sym }

2 comments on commit 249876b

@neerajdotname
Ruby on Rails member

@carlosantoniodasilva thank you. Will be mindful of it in future.

@carlosantoniodasilva
Ruby on Rails member

@neerajdotname no problem, I usually don't remember about it either 😄

Please sign in to comment.
Something went wrong with that request. Please try again.