[Groonga-commit] ranguba/groonga-client-model at 6aed759 [master] Make groonga_client_model generator as a default ORM

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Jan 26 15:47:20 JST 2017


Kouhei Sutou	2017-01-26 15:47:20 +0900 (Thu, 26 Jan 2017)

  New Revision: 6aed759f75b40ae8e7e524019f1e0a5cbd879db9
  https://github.com/ranguba/groonga-client-model/commit/6aed759f75b40ae8e7e524019f1e0a5cbd879db9

  Message:
    Make groonga_client_model generator as a default ORM
    
    If there is no ORM generator.

  Modified files:
    lib/groonga_client_model/railtie.rb

  Modified: lib/groonga_client_model/railtie.rb (+3 -4)
===================================================================
--- lib/groonga_client_model/railtie.rb    2017-01-26 15:23:44 +0900 (82d5050)
+++ lib/groonga_client_model/railtie.rb    2017-01-26 15:47:20 +0900 (e6bd0dc)
@@ -21,10 +21,9 @@ module GroongaClientModel
   class Railtie < Rails::Railtie
     config.groonga_client_model = ActiveSupport::OrderedOptions.new
 
-    # TODO
-    # config.app_generators.orm(:groonga_client_model,
-    #                           migration: true,
-    #                           timestamps: true)
+    if config.app_generators.orm.empty?
+      config.app_generators.orm(:groonga_client_model)
+    end
 
     config.action_dispatch.rescue_responses.merge!(
       "GroongaClientModel::RecordNotFound" => :not_found,
-------------- next part --------------
HTML����������������������������...
Download 



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