mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fixed the documenation for 'to_xml'
This commit is contained in:
parent
ed9aeec92d
commit
51c95e8499
1 changed files with 2 additions and 1 deletions
|
@ -162,8 +162,9 @@ module ActiveRecord #:nodoc:
|
||||||
#
|
#
|
||||||
# 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')
|
||||||
|
|
Loading…
Reference in a new issue