Permalink
Browse files

Merge pull request #4926 from iblue/master

Fixed documenation
  • Loading branch information...
2 parents dd9b428 + 51c95e8 commit c3a371ad7a06afdbb703f69cf039443922c6082b @fxn fxn committed Feb 7, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 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 c3a371a

Please sign in to comment.