Permalink
Browse files

crap, an array never has a request, stupid.

  • Loading branch information...
1 parent 20d6630 commit 67fce4671e8bcfe2aa670a89195b20837546183a Sven Fuchs committed Jun 22, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/lib/active_support/core_ext/array/conversions.rb
@@ -11,7 +11,7 @@ def to_sentence(options = {})
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

0 comments on commit 67fce46

Please sign in to comment.