Skip to content

Commit

Permalink
delegate connection and column_hash calls directly to model
Browse files Browse the repository at this point in the history
  • Loading branch information
gnufied committed May 27, 2011
1 parent d48add7 commit ed1a067
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/relation.rb
Expand Up @@ -12,7 +12,7 @@ class Relation


# These are explicitly delegated to improve performance (avoids method_missing) # 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 :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_reader :table, :klass, :loaded
attr_accessor :extensions, :default_scoped attr_accessor :extensions, :default_scoped
Expand Down

0 comments on commit ed1a067

Please sign in to comment.