[Groonga-mysql-commit] mroonga/homebrew [master] Get Mysql class from ancestors

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Aug 31 18:31:01 JST 2012


Kouhei Sutou	2012-08-31 18:31:01 +0900 (Fri, 31 Aug 2012)

  New Revision: 8afafe8066a7ed86f82deae2bd39f34c10adfbcd
  https://github.com/mroonga/homebrew/commit/8afafe8066a7ed86f82deae2bd39f34c10adfbcd

  Log:
    Get Mysql class from ancestors

  Modified files:
    mroonga.rb

  Modified: mroonga.rb (+1 -1)
===================================================================
--- mroonga.rb    2012-08-31 18:29:30 +0900 (bcc1266)
+++ mroonga.rb    2012-08-31 18:31:01 +0900 (14e2f2c)
@@ -65,7 +65,7 @@ class Mroonga < Formula
   def build_mysql_formula
     mysql = Formula.factory("mysql")
     class << mysql
-      have_patches = (instance_method(:patches).owner == mysql.class)
+      have_patches = (instance_method(:patches).owner == ancestors.first)
       if have_patches
         def patches
           file_content = path.open do |file|
-------------- next part --------------
HTML����������������������������...
下载 



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