diff options
author | Jon Leighton <j@jonathanleighton.com> | 2012-08-03 11:51:52 +0100 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2012-08-03 11:51:52 +0100 |
commit | 55b24888bbe23af3361fa23891c150e28f27809e (patch) | |
tree | 1bb4d28de4838071f31afcf861fc623c06359966 /activerecord/lib | |
parent | 0a6833b6f701c8c8febadfe2f45e25df29493602 (diff) | |
download | rails-55b24888bbe23af3361fa23891c150e28f27809e.tar.gz rails-55b24888bbe23af3361fa23891c150e28f27809e.tar.bz2 rails-55b24888bbe23af3361fa23891c150e28f27809e.zip |
Remove ActiveRecord::Base.to_a
On reflection, it seems like a bit of a weird method to have on
ActiveRecord::Base, and it shouldn't be needed most of the time anyway.
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/querying.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/querying.rb b/activerecord/lib/active_record/querying.rb index 79713b6970..13e09eda53 100644 --- a/activerecord/lib/active_record/querying.rb +++ b/activerecord/lib/active_record/querying.rb @@ -1,7 +1,7 @@ module ActiveRecord module Querying - delegate :find, :take, :take!, :first, :first!, :last, :last!, :to_a, :exists?, :any?, :many?, :to => :all + delegate :find, :take, :take!, :first, :first!, :last, :last!, :exists?, :any?, :many?, :to => :all delegate :first_or_create, :first_or_create!, :first_or_initialize, :to => :all delegate :find_by, :find_by!, :to => :all delegate :destroy, :destroy_all, :delete, :delete_all, :update, :update_all, :to => :all |