aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/paths.rb
diff options
context:
space:
mode:
authorwycats <wycats@gmail.com>2010-06-02 22:56:41 +0200
committerMikel Lindsaar <raasdnil@gmail.com>2010-06-03 23:32:12 +1000
commite57dbfe6af368cca9f4c827eb70937086cbf7ed7 (patch)
tree8b9d057a91861756260aea7990308975305ab475 /actionpack/lib/action_view/paths.rb
parenta9753637f4fcb68f65da96c85dfcb74ca1c13184 (diff)
downloadrails-e57dbfe6af368cca9f4c827eb70937086cbf7ed7.tar.gz
rails-e57dbfe6af368cca9f4c827eb70937086cbf7ed7.tar.bz2
rails-e57dbfe6af368cca9f4c827eb70937086cbf7ed7.zip
Changes made while working on upgrading cells to Rails 3
Diffstat (limited to 'actionpack/lib/action_view/paths.rb')
-rw-r--r--actionpack/lib/action_view/paths.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/lib/action_view/paths.rb b/actionpack/lib/action_view/paths.rb
index 35927d09d1..7f5e5d11b8 100644
--- a/actionpack/lib/action_view/paths.rb
+++ b/actionpack/lib/action_view/paths.rb
@@ -31,6 +31,7 @@ module ActionView #:nodoc:
def typecast!
each_with_index do |path, i|
+ path = path.to_s if path.is_a?(Pathname)
next unless path.is_a?(String)
self[i] = FileSystemResolver.new(path)
end