remove caching until we prove it is required

上级 e8be3a90
......@@ -826,13 +826,9 @@ def scopes
end
def source_type_scope
@source_type_lambda ||= begin
type = foreign_type
source_type = options[:source_type]
lambda { |object|
where(type => source_type)
}
end
type = foreign_type
source_type = options[:source_type]
lambda { |object| where(type => source_type) }
end
def has_scope?
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册