diff options
| author | Jamis Buck <jamis@37signals.com> | 2005-01-31 05:12:29 +0000 |
|---|---|---|
| committer | Jamis Buck <jamis@37signals.com> | 2005-01-31 05:12:29 +0000 |
| commit | 9d2d0a47bceca611f9e959601223365c7c2c9860 (patch) | |
| tree | f7c6d812e2e1407a323fbdb09865fff30c6da462 /doc | |
| parent | 7bc812050ff9a98cb231c8e050aaaa78b5bf9670 (diff) | |
| download | third_party-sqlite3-ruby-9d2d0a47bceca611f9e959601223365c7c2c9860.tar.gz third_party-sqlite3-ruby-9d2d0a47bceca611f9e959601223365c7c2c9860.tar.xz third_party-sqlite3-ruby-9d2d0a47bceca611f9e959601223365c7c2c9860.zip | |
Fixed deprecation warnings in faq.rb about Object#id.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/faq/faq.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/faq/faq.rb b/doc/faq/faq.rb index 13d29e4..130f712 100644 --- a/doc/faq/faq.rb +++ b/doc/faq/faq.rb @@ -52,7 +52,7 @@ def process_faq_list_item( faq ) puts question_text process_faq_list answer else - print "<a href='##{question.id}'>#{question_text}</a>" + print "<a href='##{question.object_id}'>#{question_text}</a>" end puts "</li>" @@ -75,7 +75,7 @@ def process_faq_description( faq, path ) title = RedCloth.new( path ).to_html.gsub( %r{</?p>}, "" ) answer = RedCloth.new( answer || "" ) - puts "<a name='#{question.id}'></a>" + puts "<a name='#{question.object_id}'></a>" puts "<div class='faq-title'>#{title}</div>" puts "<div class='faq-answer'>#{add_api_links(answer.to_html)}</div>" end |
