diff options
author | Sven Fuchs <svenfuchs@artweb-design.de> | 2008-06-23 14:34:01 +0200 |
---|---|---|
committer | Sven Fuchs <svenfuchs@artweb-design.de> | 2008-06-23 14:34:01 +0200 |
commit | 2ee9f2a0303cba95b2d8073fc7e22ec75229a8ee (patch) | |
tree | 441433ae1c58ade7d0edf63e4e7a0a7bb3d7a221 /actionpack/lib | |
parent | 0dddba41fcfcd28de2ce1a88a23514fbde53afcf (diff) | |
download | rails-2ee9f2a0303cba95b2d8073fc7e22ec75229a8ee.tar.gz rails-2ee9f2a0303cba95b2d8073fc7e22ec75229a8ee.tar.bz2 rails-2ee9f2a0303cba95b2d8073fc7e22ec75229a8ee.zip |
remove generic translate helpers
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_view/helpers/i18n_helper.rb | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/actionpack/lib/action_view/helpers/i18n_helper.rb b/actionpack/lib/action_view/helpers/i18n_helper.rb deleted file mode 100644 index 1b1d1f301d..0000000000 --- a/actionpack/lib/action_view/helpers/i18n_helper.rb +++ /dev/null @@ -1,19 +0,0 @@ -module ActionView - module Helpers - module I18nHelper - def translate(*args) - # inserts the locale or current request locale to the argument list if no locale - # has been passed or the locale has been passed as part of the options hash - options = args.extract_options! - if args.size != 2 - locale = options.delete :locale - locale ||= request.locale if respond_to? :request - args << locale if locale - end - args << options unless options.empty? - I18n.translate *args - end - alias :t :translate - end - end -end
\ No newline at end of file |