fixes to post/pool apis

This commit is contained in:
albert
2013-02-26 22:29:59 -08:00
parent 5bf22e9c67
commit 540d64682d
4 changed files with 34 additions and 0 deletions

View File

@@ -817,6 +817,7 @@ class Post < ActiveRecord::Base
def to_xml(options = {}, &block)
# to_xml ignores the serializable_hash method
options ||= {}
options[:methods] = [:uploader_name]
options[:except] ||= []
options[:except] += hidden_attributes
super(options, &block)