Skip to content

Instantly share code, notes, and snippets.

@radar
Created July 10, 2010 10:15
Show Gist options
  • Save radar/470614 to your computer and use it in GitHub Desktop.
Save radar/470614 to your computer and use it in GitHub Desktop.
From 02e5f09f4d96c4f8ac0c2172008aef0117a70f3e Mon Sep 17 00:00:00 2001
From: Ryan Bigg <[email protected]>
Date: Sat, 10 Jul 2010 20:14:30 +1000
Subject: [PATCH] Remove ugly caller trace.
---
lib/i18n/backend/base.rb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/i18n/backend/base.rb b/lib/i18n/backend/base.rb
index 41a6134..d371795 100644
--- a/lib/i18n/backend/base.rb
+++ b/lib/i18n/backend/base.rb
@@ -219,7 +219,7 @@ module I18n
def warn_syntax_deprecation!(locale, string) #:nodoc:
return if @skip_syntax_deprecation
- warn "The {{key}} interpolation syntax in I18n messages is deprecated. Please use %{key} instead.\n#{locale} - #{string}\n#{caller.join("\n")}"
+ warn "The {{key}} interpolation syntax in I18n messages is deprecated. Please use %{key} instead.\n#{locale} - #{string}\n"
@skip_syntax_deprecation = true
end
end
--
1.7.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment