aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext
diff options
context:
space:
mode:
authorSven Fuchs <svenfuchs@artweb-design.de>2008-06-22 13:49:08 +0200
committerSven Fuchs <svenfuchs@artweb-design.de>2008-06-22 13:49:08 +0200
commit67fce4671e8bcfe2aa670a89195b20837546183a (patch)
treed0976e1ace34d190209b57160c52b69a102d285d /activesupport/lib/active_support/core_ext
parent20d6630c1bb70f09e1f6a135bd3f9d690ad28250 (diff)
downloadrails-67fce4671e8bcfe2aa670a89195b20837546183a.tar.gz
rails-67fce4671e8bcfe2aa670a89195b20837546183a.tar.bz2
rails-67fce4671e8bcfe2aa670a89195b20837546183a.zip
crap, an array never has a request, stupid.
Diffstat (limited to 'activesupport/lib/active_support/core_ext')
-rw-r--r--activesupport/lib/active_support/core_ext/array/conversions.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/array/conversions.rb b/activesupport/lib/active_support/core_ext/array/conversions.rb
index 08e608d346..80d91a6cbd 100644
--- a/activesupport/lib/active_support/core_ext/array/conversions.rb
+++ b/activesupport/lib/active_support/core_ext/array/conversions.rb
@@ -11,7 +11,7 @@ module ActiveSupport #:nodoc:
options.assert_valid_keys(:connector, :skip_last_comma, :locale)
locale = options[:locale]
- locale ||= request.locale if respond_to?(:request)
+ locale ||= self.locale if respond_to?(:locale)
default = :'support.array.sentence_connector'.t(locale)
options.reverse_merge! :connector => default, :skip_last_comma => false