From 41af6d9a78446a5219a321cf638945b1608cefd8 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Wed, 17 Mar 2010 22:27:48 -0700 Subject: Use Array.wrap not Array() --- actionpack/lib/action_view/base.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'actionpack/lib/action_view/base.rb') diff --git a/actionpack/lib/action_view/base.rb b/actionpack/lib/action_view/base.rb index 4d9f53cf95..859c5c0863 100644 --- a/actionpack/lib/action_view/base.rb +++ b/actionpack/lib/action_view/base.rb @@ -1,6 +1,7 @@ require 'active_support/core_ext/module/attr_internal' require 'active_support/core_ext/module/delegation' require 'active_support/core_ext/class/attribute' +require 'active_support/core_ext/array/wrap' module ActionView #:nodoc: class NonConcattingString < ActiveSupport::SafeBuffer @@ -216,7 +217,7 @@ module ActionView #:nodoc: end def self.process_view_paths(value) - ActionView::PathSet.new(Array(value)) + ActionView::PathSet.new(Array.wrap(value)) end def self.for_controller(controller) -- cgit v1.2.3