From 51d6bc2807d7899723f72aa4dba6851b8b135a65 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Fri, 10 Mar 2006 17:28:21 +0000 Subject: Passing comment git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3835 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/lib/active_record/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/lib/active_record/base.rb') diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index 623e5a30e9..70d88e561b 100755 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -1523,7 +1523,7 @@ module ActiveRecord #:nodoc: # Turns this record into XML def to_xml(options = {}) options[:root] ||= self.class.to_s.underscore - options[:except] = Array(options[:except]) << self.class.inheritance_column unless options[:only] + options[:except] = Array(options[:except]) << self.class.inheritance_column unless options[:only] # skip type column root_only_or_except = { :only => options[:only], :except => options[:except] } attributes_for_xml = attributes(root_only_or_except) -- cgit v1.2.3