Skip to content
Browse files

Fixed the documenation for 'to_xml'

  • Loading branch information...
1 parent ed9aeec commit 51c95e84992402c15c30c85ca7ec21dab34dc132 @iblue iblue committed 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
@@ -162,8 +162,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 51c95e8

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