Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

crap, an array never has a request, stupid.

  • Loading branch information...
commit 67fce4671e8bcfe2aa670a89195b20837546183a 1 parent 20d6630
@svenfuchs svenfuchs authored
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.