to_sentence (ActiveSupport::CoreExtensions::Array::Conversions)

    # File lib/active_support/core_ext/array/conversions.rb, line 10
            def to_sentence(options = {})
              options.assert_valid_keys(:connector, :skip_last_comma, :locale)

              default = I18n.translate('support.array.sentence_connector''support.array.sentence_connector', :locale => options[:locale])
              default_skip_last_comma = I18n.translate('support.array.skip_last_comma''support.array.skip_last_comma', :locale => options[:locale])
              options.reverse_merge! :connector => default, :skip_last_comma => default_skip_last_comma
              options[:connector] = "#{options[:connector]} " unless options[:connector].nil? || options[:connector].strip == ''

              case length
                when 0
                  ""
                when 1
                  self[0].to_s
                when 2
                  "#{self[0]} #{options[:connector]}#{self[1]}"
                else
                  "#{self[0...-1].join(', ')}#{options[:skip_last_comma] ? '' : ','} #{options[:connector]}#{self[-1]}"
              end
            end