提交 9fb51e76 编写于 作者: A Akira Matsuda

Disable IdentityMap by default for ActiveRecord testing

because enabling IM by default will possibly hide some bugs on 3.1 default behavior
上级 c122c7b2
......@@ -26,8 +26,8 @@
# Quote "type" if it's a reserved word for the current connection.
QUOTED_TYPE = ActiveRecord::Base.connection.quote_column_name('type')
# Enable Identity Map for testing
ActiveRecord::IdentityMap.enabled = (ENV['IM'] == "false" ? false : true)
# Enable Identity Map only when ENV['IM'] is set to "true"
ActiveRecord::IdentityMap.enabled = (ENV['IM'] == "true")
def current_adapter?(*types)
types.any? do |type|
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册