Permalink
Browse files

Dont delegate relation#find to to_a

  • Loading branch information...
lifo committed Dec 27, 2009
1 parent e9e20ab commit a0ff5f82c37f312a808dbbdb6191fbf20a750775
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/relation.rb
@@ -1,7 +1,7 @@
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 = [])

0 comments on commit a0ff5f8

Please sign in to comment.