提交 a0ff5f82 编写于 作者: P Pratik Naik

Dont delegate relation#find to to_a

上级 e9e20ab6
module ActiveRecord
class Relation
delegate :to_sql, :to => :relation
delegate :length, :collect, :find, :map, :each, :to => :to_a
delegate :length, :collect, :map, :each, :to => :to_a
attr_reader :relation, :klass, :associations_to_preload, :eager_load_associations
def initialize(klass, relation, readonly = false, preload = [], eager_load = [])
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册