diff options
author | Markus Fenske <iblue@gmx.net> | 2012-02-07 17:25:35 +0100 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2012-02-07 17:32:15 +0100 |
commit | 8c7378aae81cc1ceabb41c197bccd68f535b9833 (patch) | |
tree | 7ff6f06672dab5856ac37b934f1b762841b6c9d0 /activerecord/lib/active_record | |
parent | bc85fcb05269a2293d97eab140e9f934b151b51a (diff) | |
download | rails-8c7378aae81cc1ceabb41c197bccd68f535b9833.tar.gz rails-8c7378aae81cc1ceabb41c197bccd68f535b9833.tar.bz2 rails-8c7378aae81cc1ceabb41c197bccd68f535b9833.zip |
Fixed the documenation for 'to_xml'
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/serializers/xml_serializer.rb | 3 |
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 0e7f57aa43..55338a1ffd 100644 --- a/activerecord/lib/active_record/serializers/xml_serializer.rb +++ b/activerecord/lib/active_record/serializers/xml_serializer.rb @@ -163,8 +163,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') |