Permalink
Browse files

delegate connection and column_hash calls directly to model

  • Loading branch information...
gnufied committed May 27, 2011
1 parent d48add7 commit ed1a0672abb4d6e8aba3f6db7d90970f98a5f8c2
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/relation.rb
@@ -12,7 +12,7 @@ class Relation
# These are explicitly delegated to improve performance (avoids method_missing)
delegate :to_xml, :to_yaml, :length, :collect, :map, :each, :all?, :include?, :to => :to_a
- delegate :table_name, :quoted_table_name, :primary_key, :quoted_primary_key, :to => :klass
+ delegate :table_name, :quoted_table_name, :primary_key, :quoted_primary_key, :connection, :column_hash,:to => :klass
attr_reader :table, :klass, :loaded
attr_accessor :extensions, :default_scoped

0 comments on commit ed1a067

Please sign in to comment.