diff options
author | Burke Libbey <burke@burkelibbey.org> | 2011-05-06 14:02:31 -0500 |
---|---|---|
committer | Burke Libbey <burke@burkelibbey.org> | 2011-05-06 14:02:31 -0500 |
commit | 156039c4cf7f0e0ad697443b121b46d3fe57d801 (patch) | |
tree | 6197ccd5d9d98abe65f0719817180617d962856e /actionpack/lib/action_view/template/error.rb | |
parent | 30d49d001e9060d1898722dfa43b61b7daf90cd4 (diff) | |
download | rails-156039c4cf7f0e0ad697443b121b46d3fe57d801.tar.gz rails-156039c4cf7f0e0ad697443b121b46d3fe57d801.tar.bz2 rails-156039c4cf7f0e0ad697443b121b46d3fe57d801.zip |
Added a test for MissingTemplate change, and changed to use Array.wrap() as
requested by josevalim.
Diffstat (limited to 'actionpack/lib/action_view/template/error.rb')
-rw-r--r-- | actionpack/lib/action_view/template/error.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/template/error.rb b/actionpack/lib/action_view/template/error.rb index fa7a620daa..6eec0cc23d 100644 --- a/actionpack/lib/action_view/template/error.rb +++ b/actionpack/lib/action_view/template/error.rb @@ -29,7 +29,7 @@ module ActionView def initialize(paths, path, prefixes, partial, details, *) @path = path - prefixes = [prefixes] if String === prefixes + prefixes = Array.wrap(prefixes) if String === prefixes display_paths = paths.compact.map{ |p| p.to_s.inspect }.join(", ") template_type = if partial "partial" |