Blob Blame History Raw
commit 2d11da4f60fa324aee1130707a103d66b9dc0957
Author: Masao Mutoh <mutoh@highway.ne.jp>
Date:   Sat Mar 28 00:33:03 2009 +0900

    Keep backward compatibility of bindtextdomain.
    
    Reported by Mamoru Tasaka(#24947), Mathieu Blondel.

diff --git a/lib/gettext.rb b/lib/gettext.rb
index 30975f8..f83e8ec 100644
--- a/lib/gettext.rb
+++ b/lib/gettext.rb
@@ -53,8 +53,8 @@ module GetText
   #     library doesn't use this option. Application may use this once.
   # * Returns: the GetText::TextDomainManager.
   #
-  def bindtextdomain(domainname, options = {})
-    bindtextdomain_to(self, domainname, options)
+  def bindtextdomain(domainname, *options)
+    bindtextdomain_to(self, domainname, *options)
   end
 
   # Includes GetText module and bind a textdomain to a class.