class ActiveRecord::XmlSerializer
def serializable_method_attributes
def serializable_method_attributes Array(options[:methods]).inject([]) do |method_attributes, name| method_attributes << MethodAttribute.new(name.to_s, @record) if @record.respond_to?(name.to_s) method_attributes end end