diff options
author | Burke Libbey <burke@burkelibbey.org> | 2011-05-06 15:28:31 -0500 |
---|---|---|
committer | Burke Libbey <burke@burkelibbey.org> | 2011-05-06 15:28:31 -0500 |
commit | 4c4d5c7e6c028c6a29701abb0f64231ff284a466 (patch) | |
tree | de4584895feb164cf0484637e64aabd55c5c2478 /actionpack | |
parent | 156039c4cf7f0e0ad697443b121b46d3fe57d801 (diff) | |
download | rails-4c4d5c7e6c028c6a29701abb0f64231ff284a466.tar.gz rails-4c4d5c7e6c028c6a29701abb0f64231ff284a466.tar.bz2 rails-4c4d5c7e6c028c6a29701abb0f64231ff284a466.zip |
Remove redundant check for is_a?(String)
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_view/path_set.rb | 2 | ||||
-rw-r--r-- | actionpack/lib/action_view/template/error.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/path_set.rb b/actionpack/lib/action_view/path_set.rb index 1e38b82852..ea5b71bb03 100644 --- a/actionpack/lib/action_view/path_set.rb +++ b/actionpack/lib/action_view/path_set.rb @@ -15,7 +15,7 @@ module ActionView #:nodoc: end def find_all(path, prefixes = [], *args) - prefixes = Array.wrap(prefixes) if String === prefixes + prefixes = Array.wrap(prefixes) prefixes.each do |prefix| each do |resolver| templates = resolver.find_all(path, prefix, *args) diff --git a/actionpack/lib/action_view/template/error.rb b/actionpack/lib/action_view/template/error.rb index 6eec0cc23d..1ee05c8f6f 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 = Array.wrap(prefixes) if String === prefixes + prefixes = Array.wrap(prefixes) display_paths = paths.compact.map{ |p| p.to_s.inspect }.join(", ") template_type = if partial "partial" |