fix wiki page xml api
This commit is contained in:
@@ -72,8 +72,8 @@ class WikiPage < ActiveRecord::Base
|
|||||||
|
|
||||||
def to_xml(options = {}, &block)
|
def to_xml(options = {}, &block)
|
||||||
options ||= {}
|
options ||= {}
|
||||||
options[:procs] ||= []
|
options[:methods] ||= []
|
||||||
options[:procs] << lambda {|options, record| options[:builder].tag!("creator-name", record.creator_name)}
|
options[:methods] += [:creator_name, :category_name]
|
||||||
super(options, &block)
|
super(options, &block)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user