Skip to content

Commit

Permalink
Merge pull request #4926 from iblue/master
Browse files Browse the repository at this point in the history
Fixed documenation
  • Loading branch information
fxn committed Feb 7, 2012
2 parents dd9b428 + 51c95e8 commit c3a371a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion activerecord/lib/active_record/serializers/xml_serializer.rb
Expand Up @@ -162,8 +162,9 @@ module Serialization
# #
# class IHaveMyOwnXML < ActiveRecord::Base # class IHaveMyOwnXML < ActiveRecord::Base
# def to_xml(options = {}) # def to_xml(options = {})
# require 'builder' unless defined? ::Builder
# options[:indent] ||= 2 # 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.instruct! unless options[:skip_instruct]
# xml.level_one do # xml.level_one do
# xml.tag!(:second_level, 'content') # xml.tag!(:second_level, 'content')
Expand Down

0 comments on commit c3a371a

Please sign in to comment.