1
0
Fork 0
mirror of https://github.com/drapergem/draper synced 2023-03-27 23:21:17 -04:00

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