提交 35c89c41 编写于 作者: D David Heinemeier Hansson

Fixed fixtures using primary key fields called something else than "id" #270 [dave]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@53 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 7cc27b7b
*CVS*
* Fixed fixtures using primary key fields called something else than "id" [dave]
* Added proper handling of time fields that are turned into Time objects with the dummy date of 2000/1/1 [HariSeldon]
* Added reverse order of deleting fixtures, so referential keys can be maintained #247 [Tim Bates]
......
......@@ -151,7 +151,7 @@ def value_list
end
def find
Object.const_get(@class_name).find(self["id"])
Object.const_get(@class_name).find(self[Object.const_get(@class_name).primary_key])
end
private
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册