fix wiki page xml api

This commit is contained in:
Toks
2013-06-23 12:01:07 -04:00
parent 43119d02fb
commit daebcf19f0

View File

@@ -72,8 +72,8 @@ class WikiPage < ActiveRecord::Base
def to_xml(options = {}, &block)
options ||= {}
options[:procs] ||= []
options[:procs] << lambda {|options, record| options[:builder].tag!("creator-name", record.creator_name)}
options[:methods] ||= []
options[:methods] += [:creator_name, :category_name]
super(options, &block)
end
end