diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2006-08-19 14:56:58 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2006-08-19 14:56:58 +0000 |
commit | e96c58224c31c63b023b7f71e8f3ada440eb2fa8 (patch) | |
tree | 84335cb6ac8aa8c6cf5e2be29db646f0e7bd2de8 /activerecord/lib/active_record/associations/association_collection.rb | |
parent | 81b05fd9098c492bcf8651fe9042e5157d9a994b (diff) | |
download | rails-e96c58224c31c63b023b7f71e8f3ada440eb2fa8.tar.gz rails-e96c58224c31c63b023b7f71e8f3ada440eb2fa8.tar.bz2 rails-e96c58224c31c63b023b7f71e8f3ada440eb2fa8.zip |
unbraindeadify addition to has_many :through
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4791 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib/active_record/associations/association_collection.rb')
-rw-r--r-- | activerecord/lib/active_record/associations/association_collection.rb | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/activerecord/lib/active_record/associations/association_collection.rb b/activerecord/lib/active_record/associations/association_collection.rb index ec7af7913d..552c1ed06e 100644 --- a/activerecord/lib/active_record/associations/association_collection.rb +++ b/activerecord/lib/active_record/associations/association_collection.rb @@ -163,11 +163,6 @@ module ActiveRecord end private - # Array#flatten has problems with recursive arrays. Going one level deeper solves the majority of the problems. - def flatten_deeper(array) - array.collect { |element| element.respond_to?(:flatten) ? element.flatten : element }.flatten - end - def callback(method, record) callbacks_for(method).each do |callback| case callback |