diff options
author | misfo <tedwardo2@gmail.com> | 2009-03-14 10:42:02 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-03-14 10:42:02 -0500 |
commit | 7706b57034e91820cf83445aede57c54ab66ac2d (patch) | |
tree | 34f8e267eecabd996ab1acd66f709a00aa1ea8c7 /actionpack/lib/action_view | |
parent | 112056333f6ad2492a37b7eb9d647ecd23980592 (diff) | |
download | rails-7706b57034e91820cf83445aede57c54ab66ac2d.tar.gz rails-7706b57034e91820cf83445aede57c54ab66ac2d.tar.bz2 rails-7706b57034e91820cf83445aede57c54ab66ac2d.zip |
allowed render :file to take Pathnames [#2220 state:resolved]
Signed-off-by: Joshua Peek <josh@joshpeek.com>
Diffstat (limited to 'actionpack/lib/action_view')
-rw-r--r-- | actionpack/lib/action_view/template.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/template.rb b/actionpack/lib/action_view/template.rb index 0dd3a7e619..c339c8a554 100644 --- a/actionpack/lib/action_view/template.rb +++ b/actionpack/lib/action_view/template.rb @@ -218,7 +218,7 @@ module ActionView #:nodoc: # Returns file split into an array # [base_path, name, locale, format, extension] def split(file) - if m = file.match(/^(.*\/)?([^\.]+)\.(.*)$/) + if m = file.to_s.match(/^(.*\/)?([^\.]+)\.(.*)$/) base_path = m[1] name = m[2] extensions = m[3] |