diff options
author | Arun Agrawal <arun@fromjaipur.com> | 2011-08-13 13:13:05 +0530 |
---|---|---|
committer | Arun Agrawal <arun@fromjaipur.com> | 2011-08-13 13:13:05 +0530 |
commit | 5bc87cc2ee684ec19b9dada596c901488dc9295b (patch) | |
tree | ebdfd688259aa68afcb2e592a66768210b8118ef /actionpack | |
parent | 943a37348a9fdef73670be3d8452d436b7db0e69 (diff) | |
download | rails-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.rb | 4 |
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 |