aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2008-10-28 19:38:26 +0100
committerDavid Heinemeier Hansson <david@loudthinking.com>2008-10-28 19:38:26 +0100
commit1b0afb31dfc71674b054459c2e0418ca3a709467 (patch)
tree3ec00fac790fac2985c26015dac2bc3bc8987c99 /activesupport
parentd5b0ba66323062b54974fc224a909ffabf400a13 (diff)
downloadrails-1b0afb31dfc71674b054459c2e0418ca3a709467.tar.gz
rails-1b0afb31dfc71674b054459c2e0418ca3a709467.tar.bz2
rails-1b0afb31dfc71674b054459c2e0418ca3a709467.zip
A few more style changes
Diffstat (limited to 'activesupport')
-rwxr-xr-xactivesupport/lib/active_support/vendor/i18n-0.0.1/i18n.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/activesupport/lib/active_support/vendor/i18n-0.0.1/i18n.rb b/activesupport/lib/active_support/vendor/i18n-0.0.1/i18n.rb
index 344c77aecf..9b0b69f58b 100755
--- a/activesupport/lib/active_support/vendor/i18n-0.0.1/i18n.rb
+++ b/activesupport/lib/active_support/vendor/i18n-0.0.1/i18n.rb
@@ -150,10 +150,10 @@ module I18n
# I18n.t [:foo, :bar], :scope => :baz
def translate(key, options = {})
locale = options.delete(:locale) || I18n.locale
- backend.translate locale, key, options
+ backend.translate(locale, key, options)
rescue I18n::ArgumentError => e
raise e if options[:raise]
- send @@exception_handler, e, locale, key, options
+ send(@@exception_handler, e, locale, key, options)
end
alias :t :translate
@@ -180,8 +180,8 @@ module I18n
# keys are Symbols.
def normalize_translation_keys(locale, key, scope)
keys = [locale] + Array(scope) + [key]
- keys = keys.map{|k| k.to_s.split(/\./) }
- keys.flatten.map{|k| k.to_sym}
+ keys = keys.map { |k| k.to_s.split(/\./) }
+ keys.flatten.map { |k| k.to_sym }
end
end
end \ No newline at end of file