aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2011-12-16 23:34:00 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2011-12-16 23:34:00 +0530
commitbd84b2bb5db0a1ecdde8517a03458a82700de05d (patch)
tree2e6704058658b881a06d5510e1ce767fae46146c
parentf307f4d884be7d0dcef60df4636dbda7155b499d (diff)
parentbdcc27155dd08a4abbb8ba1ca07b767a5d8d3416 (diff)
downloadrails-bd84b2bb5db0a1ecdde8517a03458a82700de05d.tar.gz
rails-bd84b2bb5db0a1ecdde8517a03458a82700de05d.tar.bz2
rails-bd84b2bb5db0a1ecdde8517a03458a82700de05d.zip
Merge branch 'master' of github.com:lifo/docrails
-rw-r--r--actionpack/lib/action_controller/test_case.rb6
-rw-r--r--activerecord/lib/active_record/reflection.rb2
2 files changed, 4 insertions, 4 deletions
diff --git a/actionpack/lib/action_controller/test_case.rb b/actionpack/lib/action_controller/test_case.rb
index 1731388bf3..7470897659 100644
--- a/actionpack/lib/action_controller/test_case.rb
+++ b/actionpack/lib/action_controller/test_case.rb
@@ -298,11 +298,11 @@ module ActionController
# assert_equal "Dave", cookies[:name] # makes sure that a cookie called :name was set as "Dave"
# assert flash.empty? # makes sure that there's nothing in the flash
#
- # For historic reasons, the assigns hash uses string-based keys. So assigns[:person] won't work, but assigns["person"] will. To
+ # For historic reasons, the assigns hash uses string-based keys. So <tt>assigns[:person]</tt> won't work, but <tt>assigns["person"]</tt> will. To
# appease our yearning for symbols, though, an alternative accessor has been devised using a method call instead of index referencing.
- # So assigns(:person) will work just like assigns["person"], but again, assigns[:person] will not work.
+ # So <tt>assigns(:person)</tt> will work just like <tt>assigns["person"]</tt>, but again, <tt>assigns[:person]</tt> will not work.
#
- # On top of the collections, you have the complete url that a given action redirected to available in redirect_to_url.
+ # On top of the collections, you have the complete url that a given action redirected to available in <tt>redirect_to_url</tt>.
#
# For redirects within the same controller, you can even call follow_redirect and the redirect will be followed, triggering another
# action call which can then be asserted against.
diff --git a/activerecord/lib/active_record/reflection.rb b/activerecord/lib/active_record/reflection.rb
index f8a2de0f7e..794a0526fb 100644
--- a/activerecord/lib/active_record/reflection.rb
+++ b/activerecord/lib/active_record/reflection.rb
@@ -461,7 +461,7 @@ module ActiveRecord
source_reflection.source_macro
end
- # A through association is nested iff there would be more than one join table
+ # A through association is nested if there would be more than one join table
def nested?
chain.length > 2 || through_reflection.macro == :has_and_belongs_to_many
end