Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #4926 from iblue/master

Fixed documenation
  • Loading branch information...
commit c3a371ad7a06afdbb703f69cf039443922c6082b 2 parents dd9b428 + 51c95e8
@fxn fxn authored
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')
Please sign in to comment.
Something went wrong with that request. Please try again.