mirror of
https://github.com/github/rails.git
synced 2026-02-05 03:35:14 -05:00
Doc fix (closes #4515)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4124 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
@@ -188,7 +188,7 @@
|
||||
|
||||
...and you can configure with:
|
||||
|
||||
topic.to_xml(:skip_instruct => true, :skip_attributes => [ :id, bonus_time, :written_on, replies_count ])
|
||||
topic.to_xml(:skip_instruct => true, :except => [ :id, bonus_time, :written_on, replies_count ])
|
||||
|
||||
...that'll return:
|
||||
|
||||
|
||||
@@ -1636,10 +1636,10 @@ module ActiveRecord #:nodoc:
|
||||
# <last-read type="date">2004-04-15</last-read>
|
||||
# </topic>
|
||||
#
|
||||
# This behaviour can be controlled with :skip_attributes and :skip_instruct
|
||||
# This behaviour can be controlled with :only, :except, and :skip_instruct
|
||||
# for instance:
|
||||
#
|
||||
# topic.to_xml(:skip_instruct => true, :skip_attributes => [ :id, bonus_time, :written_on, replies_count ])
|
||||
# topic.to_xml(:skip_instruct => true, :except => [ :id, bonus_time, :written_on, replies_count ])
|
||||
#
|
||||
# <topic>
|
||||
# <title>The First Topic</title>
|
||||
|
||||
Reference in New Issue
Block a user