diff --git a/lib/active_resource/collection.rb b/lib/active_resource/collection.rb index dcb4048a56..fcdcb86bc7 100644 --- a/lib/active_resource/collection.rb +++ b/lib/active_resource/collection.rb @@ -4,7 +4,7 @@ module ActiveResource # :nodoc: class Collection # :nodoc: include Enumerable - delegate :to_xml, :to_yaml, :length, :collect, :map, :each, :all?, :include?, :to_ary, :size, :last, :first, :[], :to => :to_a + delegate :to_yaml, :all?, *Array.instance_methods(false), :to => :to_a # The array of actual elements returned by index actions attr_accessor :elements, :resource_class, :original_params