diff options
author | Sven Fuchs <svenfuchs@artweb-design.de> | 2008-07-02 19:21:07 +0200 |
---|---|---|
committer | Sven Fuchs <svenfuchs@artweb-design.de> | 2008-07-02 19:21:07 +0200 |
commit | 8f74ba96c47e77e18ce363c8e7cd2fc9196faf7a (patch) | |
tree | d3ea17f604e93db745ee74ee21dc7cafa76bc81d /activesupport/lib/active_support/core_ext | |
parent | 7403c825a05af320e20f1b7e20b0c565081ede89 (diff) | |
download | rails-8f74ba96c47e77e18ce363c8e7cd2fc9196faf7a.tar.gz rails-8f74ba96c47e77e18ce363c8e7cd2fc9196faf7a.tar.bz2 rails-8f74ba96c47e77e18ce363c8e7cd2fc9196faf7a.zip |
remove core extensions in favor of I18n#translate and I18n#localize
Diffstat (limited to 'activesupport/lib/active_support/core_ext')
-rw-r--r-- | activesupport/lib/active_support/core_ext/array/conversions.rb | 2 |
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 80d91a6cbd..80bf1404de 100644 --- a/activesupport/lib/active_support/core_ext/array/conversions.rb +++ b/activesupport/lib/active_support/core_ext/array/conversions.rb @@ -13,7 +13,7 @@ module ActiveSupport #:nodoc: locale = options[:locale] locale ||= self.locale if respond_to?(:locale) - default = :'support.array.sentence_connector'.t(locale) + default = I18n.translate(:'support.array.sentence_connector', locale) options.reverse_merge! :connector => default, :skip_last_comma => false options[:connector] = "#{options[:connector]} " unless options[:connector].nil? || options[:connector].strip == '' |