[Groonga-commit] droonga/droonga-engine at a5072dd [master] Accept non-string input as a role

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Apr 29 16:50:40 JST 2015


YUKI Hiroshi	2015-04-29 16:50:40 +0900 (Wed, 29 Apr 2015)

  New Revision: a5072ddbb287f91fa34af915a7e687bb48193637
  https://github.com/droonga/droonga-engine/commit/a5072ddbb287f91fa34af915a7e687bb48193637

  Message:
    Accept non-string input as a role

  Modified files:
    lib/droonga/node_role.rb

  Modified: lib/droonga/node_role.rb (+1 -1)
===================================================================
--- lib/droonga/node_role.rb    2015-04-29 16:06:30 +0900 (8995844)
+++ lib/droonga/node_role.rb    2015-04-29 16:50:40 +0900 (994e965)
@@ -64,7 +64,7 @@ module Droonga
     end
 
     def normalize(role)
-      role = role.downcase
+      role = role.to_s.downcase
       role = SERVICE_PROVIDER unless valid?(role)
       role
     end
-------------- next part --------------
HTML����������������������������...
Download 



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