Use @options instead of older @context

This commit is contained in:
Jeff Casimir 2011-11-30 11:37:59 -05:00
parent 58a733ee3b
commit f42f670812
2 changed files with 1 additions and 2 deletions

View File

@ -27,7 +27,7 @@ module Draper
end
def [](index)
@klass.new(@wrapped_collection[index], @context)
@klass.new(@wrapped_collection[index], @options)
end
def to_s

View File

@ -312,7 +312,6 @@ describe Draper::Base do
it "should allow decorated access by index" do
subject = ProductDecorator.decorate(paged_array)
subject[0].should be_instance_of ProductDecorator
end