Permalink
Browse files

Passing comment

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3835 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent bfbbd4c commit 51d6bc2807d7899723f72aa4dba6851b8b135a65 @dhh dhh committed Mar 10, 2006
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/base.rb
@@ -1523,7 +1523,7 @@ def readonly!
# 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)

0 comments on commit 51d6bc2

Please sign in to comment.