[logaling-commit] logaling/logaling-command [refactor-structure] Change parameter to Glossary object

Back to archive index

null+****@clear***** null+****@clear*****
Tue Jun 19 19:07:52 JST 2012


SUZUKI Miho	2012-06-19 19:07:52 +0900 (Tue, 19 Jun 2012)

  New Revision: b551861899230360dddfef5d2cf1251df69c124c
  https://github.com/logaling/logaling-command/commit/b551861899230360dddfef5d2cf1251df69c124c

  Log:
    Change parameter to Glossary object

  Modified files:
    lib/logaling/glossary_db.rb

  Modified: lib/logaling/glossary_db.rb (+3 -3)
===================================================================
--- lib/logaling/glossary_db.rb    2012-06-19 19:04:24 +0900 (1bf4bda)
+++ lib/logaling/glossary_db.rb    2012-06-19 19:07:52 +0900 (480ab24)
@@ -95,7 +95,7 @@ module Logaling
       deindex_glossary(glossary, glossary_source)
 
       add_glossary_source(glossary_source)
-      add_glossary(glossary.name)
+      add_glossary(glossary)
       GlossarySource.load(glossary_source.source_path).each do |term|
         source_term = term['source_term']
         target_term = term['target_term']
@@ -276,8 +276,8 @@ module Logaling
       records.expression.close
     end
 
-    def add_glossary(glossary_name)
-      Groonga["glossaries"].add(glossary_name)
+    def add_glossary(glossary)
+      Groonga["glossaries"].add(glossary.name)
     end
 
     def delete_translations_by_glossary_source(glossary_source)
-------------- next part --------------
An HTML attachment was scrubbed...
下載 



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