Skip to content

Commit

Permalink
Delegate array reader method
Browse files Browse the repository at this point in the history
  • Loading branch information
denzel-morris committed Feb 4, 2013
1 parent 2dee1db commit b2fb5da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/active_resource/collection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,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_xml, :to_yaml, :length, :collect, :map, :each, :all?, :include?, :to_ary, :size, :last, :first, :[], :to => :to_a

# The array of actual elements returned by index actions
attr_accessor :elements
Expand Down

0 comments on commit b2fb5da

Please sign in to comment.