From 12c5287e30be98d4becb4319aedd8375d45322e6 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 1 Apr 2006 20:10:42 +0000 Subject: Doc fix (closes #4515) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4124 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/CHANGELOG | 2 +- activerecord/lib/active_record/base.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'activerecord') diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG index 01d98d13c8..b14e029df5 100644 --- a/activerecord/CHANGELOG +++ b/activerecord/CHANGELOG @@ -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: diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index 8227cbe89d..28ae612dad 100755 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -1636,10 +1636,10 @@ module ActiveRecord #:nodoc: # 2004-04-15 # # - # 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 ]) # # # The First Topic -- cgit v1.2.3