diff options
author | Jon Leighton <j@jonathanleighton.com> | 2011-08-13 03:31:43 -0700 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2011-08-13 03:31:43 -0700 |
commit | 6b56f059bfb5e0c9ff4198864cf469077bb91b71 (patch) | |
tree | ebdfd688259aa68afcb2e592a66768210b8118ef | |
parent | 943a37348a9fdef73670be3d8452d436b7db0e69 (diff) | |
parent | 5bc87cc2ee684ec19b9dada596c901488dc9295b (diff) | |
download | rails-6b56f059bfb5e0c9ff4198864cf469077bb91b71.tar.gz rails-6b56f059bfb5e0c9ff4198864cf469077bb91b71.tar.bz2 rails-6b56f059bfb5e0c9ff4198864cf469077bb91b71.zip |
Merge pull request #2516 from arunagw/path_set_fix
We need [] method here. previously it's an array.
-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 |