aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/debugging_rails_applications.textile
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2011-07-08 18:44:42 +0900
committerAkira Matsuda <ronnie@dio.jp>2011-07-08 18:44:42 +0900
commitd02726c24c6278188634c87112c1f831ff3f4644 (patch)
tree0a6f5a51b5711e416295e9fe9509ea077dde7c90 /railties/guides/source/debugging_rails_applications.textile
parent4d4819fb279386570466b2f99254cd77fb71e05c (diff)
downloadrails-d02726c24c6278188634c87112c1f831ff3f4644.tar.gz
rails-d02726c24c6278188634c87112c1f831ff3f4644.tar.bz2
rails-d02726c24c6278188634c87112c1f831ff3f4644.zip
minor document edit
the sample model has only 9 lines: https://github.com/lifo/docrails/commit/4d4819fb279386570466b2f99254cd77fb71e05c#commitcomment-467295
Diffstat (limited to 'railties/guides/source/debugging_rails_applications.textile')
-rw-r--r--railties/guides/source/debugging_rails_applications.textile7
1 files changed, 5 insertions, 2 deletions
diff --git a/railties/guides/source/debugging_rails_applications.textile b/railties/guides/source/debugging_rails_applications.textile
index 500ebf8f7a..1ab40cef4d 100644
--- a/railties/guides/source/debugging_rails_applications.textile
+++ b/railties/guides/source/debugging_rails_applications.textile
@@ -503,12 +503,15 @@ With the code stopped, take a look around:
<shell>
(rdb:1) list
-[6, 15] in /PathTo/project/app/models/author.rb
+[2, 9] in /PathTo/project/app/models/author.rb
+ 2 has_one :editorial
+ 3 has_many :comments
+ 4
+ 5 def find_recent_comments(limit = 10)
6 debugger
=> 7 @recent_comments ||= comments.where("created_at > ?", 1.week.ago).limit(limit)
8 end
9 end
- 10 ...
</shell>
You are at the end of the line, but... was this line executed? You can inspect the instance variables.