diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-04-04 19:45:19 -0300 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-04-04 19:46:27 -0300 |
commit | 249876b99bd518f93f5a9f8ae6c4ed7d6fb02936 (patch) | |
tree | 17398a441f114edab1c87368710568907c4ac9c4 | |
parent | 507812fdf32586a59071efabdfc471402bd589f3 (diff) | |
download | rails-249876b99bd518f93f5a9f8ae6c4ed7d6fb02936.tar.gz rails-249876b99bd518f93f5a9f8ae6c4ed7d6fb02936.tar.bz2 rails-249876b99bd518f93f5a9f8ae6c4ed7d6fb02936.zip |
Use a space after the comment sign when showing the result of commands
http://guides.rubyonrails.org/api_documentation_guidelines.html#example-code
[ci skip]
-rw-r--r-- | activerecord/lib/active_record/reflection.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/reflection.rb b/activerecord/lib/active_record/reflection.rb index 3eee77e653..9403273db0 100644 --- a/activerecord/lib/active_record/reflection.rb +++ b/activerecord/lib/active_record/reflection.rb @@ -409,7 +409,7 @@ module ActiveRecord # 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 @@ module ActiveRecord # # 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 @@ module ActiveRecord # # 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 } |