Skip to content
Browse files

Dont delegate relation#find to to_a

  • Loading branch information...
1 parent e9e20ab commit a0ff5f82c37f312a808dbbdb6191fbf20a750775 @lifo lifo committed Dec 28, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/relation.rb
View
2 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.
Something went wrong with that request. Please try again.