[Groonga-commit] groonga/groonga at 3f75159 [master] mrb: fix a class

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Aug 30 17:07:51 JST 2016


Kouhei Sutou	2016-08-30 17:07:51 +0900 (Tue, 30 Aug 2016)

  New Revision: 3f7515959c7373e4d81b62ad285ec21be49f55ab
  https://github.com/groonga/groonga/commit/3f7515959c7373e4d81b62ad285ec21be49f55ab

  Message:
    mrb: fix a class

  Modified files:
    lib/mrb/scripts/context/rc.rb

  Modified: lib/mrb/scripts/context/rc.rb (+1 -1)
===================================================================
--- lib/mrb/scripts/context/rc.rb    2016-08-30 16:50:24 +0900 (42347e9)
+++ lib/mrb/scripts/context/rc.rb    2016-08-30 17:07:51 +0900 (ba327f7)
@@ -6,7 +6,7 @@ module Groonga
 
       class << self
         def find(name_or_code)
-          if name_or_code.is_a?(String)
+          if name_or_code.is_a?(Symbol)
             @@names[name_or_code] || UNKNOWN_ERROR
           else
             @@codes[name_or_code] || UNKNOWN_ERROR
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index