Permalink
Browse files

minor document edit

the sample model has only 9 lines: rails/docrails@4d4819f#commitcomment-467295
  • Loading branch information...
1 parent 4d4819f commit d02726c24c6278188634c87112c1f831ff3f4644 @amatsuda amatsuda committed Jul 8, 2011
Showing with 5 additions and 2 deletions.
  1. +5 −2 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.

0 comments on commit d02726c

Please sign in to comment.