Skip to content
Browse files

Fixed the documenation for 'to_xml'

  • Loading branch information...
1 parent bc85fcb commit 8c7378aae81cc1ceabb41c197bccd68f535b9833 @iblue iblue committed with fxn Feb 7, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 activerecord/lib/active_record/serializers/xml_serializer.rb
View
3 activerecord/lib/active_record/serializers/xml_serializer.rb
@@ -163,8 +163,9 @@ module Serialization
#
# 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')

0 comments on commit 8c7378a

Please sign in to comment.
Something went wrong with that request. Please try again.