[Groonga-commit] ranguba/groonga-client-model at 5a6df45 [master] Make model name translatable

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Dec 12 16:28:02 JST 2016


Kouhei Sutou	2016-12-12 16:28:02 +0900 (Mon, 12 Dec 2016)

  New Revision: 5a6df455eb8b87548899637bfa4ca2d4e5c6159c
  https://github.com/ranguba/groonga-client-model/commit/5a6df455eb8b87548899637bfa4ca2d4e5c6159c

  Message:
    Make model name translatable

  Modified files:
    lib/groonga_client_model/record.rb

  Modified: lib/groonga_client_model/record.rb (+5 -0)
===================================================================
--- lib/groonga_client_model/record.rb    2016-12-12 16:15:01 +0900 (78c26fa)
+++ lib/groonga_client_model/record.rb    2016-12-12 16:28:02 +0900 (dbf4307)
@@ -19,9 +19,14 @@ module GroongaClientModel
     include ActiveModel::AttributeAssignment
     include ActiveModel::AttributeMethods
     include ActiveModel::Conversion
+    include ActiveModel::Translation
     include ActiveModel::Validations
 
     class << self
+      def i18n_scope
+        :groonga_client_model
+      end
+
       def schema
         @@schema ||= Schema.new
       end
-------------- next part --------------
HTML����������������������������...
Download 



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