提交 0f198eb5 编写于 作者: L Leon Breedt

remove ActiveRecordSoapMarshallable, can't reproduce the problem it was intended to fix.


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1043 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 cfef86c6
*0.7.0* (Unreleased)
* Remove ActiveRecordSoapMarshallable workaround, see #912 for details
* Add scaffolding via ActionController::Base.web_service_scaffold for quick testing using a web browser
* Generalize casting code to be used by both SOAP and XML-RPC (previously, it was only XML-RPC)
......
......@@ -279,19 +279,5 @@ def soap2obj(obj_class, node, info, map)
return false
end
end
module ActiveRecordSoapMarshallable
def allocate
obj = super
attrs = {}
self.columns.each{|c| attrs[c.name.to_s] = c.default}
obj.instance_variable_set('@attributes', attrs)
obj
end
end
if Object.const_defined?('ActiveRecord')
ActiveRecord::Base.extend(ActiveRecordSoapMarshallable)
end
end
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册