diff options
author | José Valim <jose.valim@gmail.com> | 2011-12-15 20:01:56 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-12-15 20:01:56 +0100 |
commit | 1af2a1d0f569407a4b2b643c57a884920ec0fabc (patch) | |
tree | 3f5107168693e354ae7ee40af12f8b124dbd5825 /activerecord/lib/active_record | |
parent | 26e7400cc5415dbce5e2c5d13da96ad8c25749e2 (diff) | |
download | rails-1af2a1d0f569407a4b2b643c57a884920ec0fabc.tar.gz rails-1af2a1d0f569407a4b2b643c57a884920ec0fabc.tar.bz2 rails-1af2a1d0f569407a4b2b643c57a884920ec0fabc.zip |
Improve delegate list to avoid method missing.
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/relation.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/relation.rb b/activerecord/lib/active_record/relation.rb index a127163e6c..a1aa764991 100644 --- a/activerecord/lib/active_record/relation.rb +++ b/activerecord/lib/active_record/relation.rb @@ -13,7 +13,8 @@ module ActiveRecord include FinderMethods, Calculations, SpawnMethods, QueryMethods, Batches, Explain # 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_ary, :to => :to_a + delegate :ast, :engine, :to => :arel delegate :table_name, :quoted_table_name, :primary_key, :quoted_primary_key, :connection, :columns_hash, :auto_explain_threshold_in_seconds, :to => :klass |