From f49d54aaac48c4fd8ed175853a919238e0ca484c Mon Sep 17 00:00:00 2001 From: Miles Georgi Date: Mon, 21 Jul 2008 23:37:01 -0700 Subject: [PATCH] added PathSet#insert to perform necessary cast before inserting --- actionpack/lib/action_view/paths.rb | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/actionpack/lib/action_view/paths.rb b/actionpack/lib/action_view/paths.rb index 78548d4..f9a3ddf 100644 --- a/actionpack/lib/action_view/paths.rb +++ b/actionpack/lib/action_view/paths.rb @@ -89,6 +89,10 @@ module ActionView #:nodoc: super(*objs.map { |obj| self.class.type_cast(obj) }) end + def insert(index, obj) + super(index, self.class.type_cast(obj)) + end + def [](template_path) each do |path| if template = path[template_path] -- 1.5.4.5