aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2009-11-09 11:58:57 -0800
committerJeremy Kemper <jeremy@bitsweat.net>2009-11-09 11:58:57 -0800
commitc74cddc9197d03ca641bf35d102199cabf1b9866 (patch)
tree64afc3b79850f6ccde96b9a1ac6d80c4c74a51d1
parent4a1f43878105d701fd2dd769ec3cf7e81d133c09 (diff)
parent17dee01b6f2186888629859fe2e99232225ae5ea (diff)
downloadrails-c74cddc9197d03ca641bf35d102199cabf1b9866.tar.gz
rails-c74cddc9197d03ca641bf35d102199cabf1b9866.tar.bz2
rails-c74cddc9197d03ca641bf35d102199cabf1b9866.zip
Merge commit 'brynary/fix-master-warnings'
-rw-r--r--actionpack/lib/action_controller/translation.rb4
-rw-r--r--actionpack/lib/action_view/helpers/translation_helper.rb2
-rw-r--r--activesupport/lib/active_support/core_ext/kernel/debugger.rb1
3 files changed, 4 insertions, 3 deletions
diff --git a/actionpack/lib/action_controller/translation.rb b/actionpack/lib/action_controller/translation.rb
index 9bb63cdb15..65e9eddb0a 100644
--- a/actionpack/lib/action_controller/translation.rb
+++ b/actionpack/lib/action_controller/translation.rb
@@ -1,12 +1,12 @@
module ActionController
module Translation
def translate(*args)
- I18n.translate *args
+ I18n.translate(*args)
end
alias :t :translate
def localize(*args)
- I18n.localize *args
+ I18n.localize(*args)
end
alias :l :localize
end
diff --git a/actionpack/lib/action_view/helpers/translation_helper.rb b/actionpack/lib/action_view/helpers/translation_helper.rb
index 4aed10f640..564f12c955 100644
--- a/actionpack/lib/action_view/helpers/translation_helper.rb
+++ b/actionpack/lib/action_view/helpers/translation_helper.rb
@@ -21,7 +21,7 @@ module ActionView
# Delegates to I18n.localize with no additional functionality.
def localize(*args)
- I18n.localize *args
+ I18n.localize(*args)
end
alias :l :localize
diff --git a/activesupport/lib/active_support/core_ext/kernel/debugger.rb b/activesupport/lib/active_support/core_ext/kernel/debugger.rb
index 0813a51383..59e03e3df7 100644
--- a/activesupport/lib/active_support/core_ext/kernel/debugger.rb
+++ b/activesupport/lib/active_support/core_ext/kernel/debugger.rb
@@ -7,6 +7,7 @@ module Kernel
end
end
+ undef :breakpoint if respond_to?(:breakpoint)
def breakpoint
message = "\n***** The 'breakpoint' command has been renamed 'debugger' -- please change *****\n"
defined?(Rails) ? Rails.logger.info(message) : $stderr.puts(message)