YUKI Hiroshi
null+****@clear*****
Fri Feb 7 17:45:10 JST 2014
YUKI Hiroshi 2014-02-07 17:45:10 +0900 (Fri, 07 Feb 2014) New Revision: 4c1bdc18bac29c98430484b14033c7111557a83e https://github.com/droonga/droonga.org/commit/4c1bdc18bac29c98430484b14033c7111557a83e Message: Update example for the latest implementation Modified files: tutorial/plugin-development/adapter/index.md Modified: tutorial/plugin-development/adapter/index.md (+10 -4) =================================================================== --- tutorial/plugin-development/adapter/index.md 2014-02-07 17:17:53 +0900 (07916f1) +++ tutorial/plugin-development/adapter/index.md 2014-02-07 17:45:10 +0900 (efb17fe) @@ -53,11 +53,17 @@ Put a plugin code into a file `store_search.rb` in the `plugin` directory. lib/droonga/plugin/store_search.rb: ~~~ruby -module StoreSearchPlugin - Plugin.repository.register("store-search", self) +require "droonga/plugin" - class Adapter < Droonga::Adapter - # You'll put codes to modify messages here. +module Droonga + module Plugins + module StoreSearchPlugin + Plugin.registry.register("store-search", self) + + class Adapter < Droonga::Adapter + # You'll put codes to modify messages here. + end + end end end ~~~ -------------- next part -------------- HTML����������������������������...Download