提交 67fce467 编写于 作者: S Sven Fuchs

crap, an array never has a request, stupid.

上级 20d6630c
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册