aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
authorMarkus Fenske <iblue@gmx.net>2012-02-07 17:25:35 +0100
committerMarkus Fenske <iblue@gmx.net>2012-02-07 17:25:35 +0100
commit51c95e84992402c15c30c85ca7ec21dab34dc132 (patch)
treee3ebb1eebf786471b80fc91eb05f49e82f20eda3 /activerecord/lib/active_record
parented9aeec92d60c2b62f3cef6b02112ad4401a0bcc (diff)
downloadrails-51c95e84992402c15c30c85ca7ec21dab34dc132.tar.gz
rails-51c95e84992402c15c30c85ca7ec21dab34dc132.tar.bz2
rails-51c95e84992402c15c30c85ca7ec21dab34dc132.zip
Fixed the documenation for 'to_xml'
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r--activerecord/lib/active_record/serializers/xml_serializer.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/serializers/xml_serializer.rb b/activerecord/lib/active_record/serializers/xml_serializer.rb
index 7f1dba5095..bd4fe1b527 100644
--- a/activerecord/lib/active_record/serializers/xml_serializer.rb
+++ b/activerecord/lib/active_record/serializers/xml_serializer.rb
@@ -162,8 +162,9 @@ module ActiveRecord #:nodoc:
#
# class IHaveMyOwnXML < ActiveRecord::Base
# def to_xml(options = {})
+ # require 'builder' unless defined? ::Builder
# options[:indent] ||= 2
- # xml = options[:builder] ||= Builder::XmlMarkup.new(:indent => options[:indent])
+ # xml = options[:builder] ||= ::Builder::XmlMarkup.new(:indent => options[:indent])
# xml.instruct! unless options[:skip_instruct]
# xml.level_one do
# xml.tag!(:second_level, 'content')