[Groonga-commit] ranguba/groonga-client-model at 30e3d0b [master] Validate by default

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Dec 22 16:57:34 JST 2016


Kouhei Sutou	2016-12-22 16:57:34 +0900 (Thu, 22 Dec 2016)

  New Revision: 30e3d0b2daafbdc96f71bb44afbb25b8fa199e8c
  https://github.com/ranguba/groonga-client-model/commit/30e3d0b2daafbdc96f71bb44afbb25b8fa199e8c

  Message:
    Validate by default

  Modified files:
    lib/groonga_client_model/record.rb

  Modified: lib/groonga_client_model/record.rb (+2 -2)
===================================================================
--- lib/groonga_client_model/record.rb    2016-12-22 16:46:26 +0900 (4d71e23)
+++ lib/groonga_client_model/record.rb    2016-12-22 16:57:34 +0900 (b66f743)
@@ -138,13 +138,13 @@ module GroongaClientModel
       @destroyed = false
     end
 
-    def save(validate: false)
+    def save(validate: true)
       run_callbacks(:save) do
         save_raw(validate: validate)
       end
     end
 
-    def save!(validate: false)
+    def save!(validate: true)
       unless save(validate: validate)
         message = "Failed to save the record"
         raise RecordNotSaved.new(message, self)
-------------- next part --------------
HTML����������������������������...
Download 



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