提交 d9f95c76 编写于 作者: J Josh Kalderimis

removed an unneed AS::Concern from AR::IdentityMap

上级 5b484959
...@@ -15,7 +15,6 @@ module ActiveRecord ...@@ -15,7 +15,6 @@ module ActiveRecord
# IdentityMap is disabled by default. # IdentityMap is disabled by default.
# #
module IdentityMap module IdentityMap
extend ActiveSupport::Concern
class << self class << self
def enabled=(flag) def enabled=(flag)
...@@ -53,7 +52,7 @@ def get(klass, primary_key) ...@@ -53,7 +52,7 @@ def get(klass, primary_key)
if record.is_a?(klass) if record.is_a?(klass)
ActiveSupport::Notifications.instrument("identity.active_record", ActiveSupport::Notifications.instrument("identity.active_record",
:line => "From Identity Map (id: #{primary_key})", :line => "From Identity Map (id: #{primary_key})",
:name => "#{klass} Loaded", :name => "#{klass} Loaded",
:connection_id => object_id) :connection_id => object_id)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册