aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorArun Agrawal <arun@fromjaipur.com>2011-08-13 13:13:05 +0530
committerArun Agrawal <arun@fromjaipur.com>2011-08-13 13:13:05 +0530
commit5bc87cc2ee684ec19b9dada596c901488dc9295b (patch)
treeebdfd688259aa68afcb2e592a66768210b8118ef /actionpack
parent943a37348a9fdef73670be3d8452d436b7db0e69 (diff)
downloadrails-5bc87cc2ee684ec19b9dada596c901488dc9295b.tar.gz
rails-5bc87cc2ee684ec19b9dada596c901488dc9295b.tar.bz2
rails-5bc87cc2ee684ec19b9dada596c901488dc9295b.zip
We need [] method here. previously it's an array.
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_view/path_set.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/lib/action_view/path_set.rb b/actionpack/lib/action_view/path_set.rb
index 21dc5617ad..bbb1af8154 100644
--- a/actionpack/lib/action_view/path_set.rb
+++ b/actionpack/lib/action_view/path_set.rb
@@ -14,6 +14,10 @@ module ActionView #:nodoc:
self
end
+ def [](i)
+ paths[i]
+ end
+
def to_ary
paths.dup
end