Kouhei Sutou
null+****@clear*****
Fri Feb 3 21:40:35 JST 2017
Kouhei Sutou 2017-02-03 21:40:35 +0900 (Fri, 03 Feb 2017) New Revision: 5579f86e585776ad6e518b9788f3bf3370928e6b https://github.com/ranguba/groonga-client-model/commit/5579f86e585776ad6e518b9788f3bf3370928e6b Message: Use #[] for raw Hash Modified files: lib/groonga_client_model/validations/type_validator.rb test/apps/rails5/Gemfile.lock Modified: lib/groonga_client_model/validations/type_validator.rb (+2 -2) =================================================================== --- lib/groonga_client_model/validations/type_validator.rb 2017-02-03 18:29:24 +0900 (9120972) +++ lib/groonga_client_model/validations/type_validator.rb 2017-02-03 21:40:35 +0900 (93a86b4) @@ -20,10 +20,10 @@ module GroongaClientModel def validate_each(record, attribute, value) column = record.class.columns[attribute] return if column.nil? - value_type = column.value_type + value_type = column["value_type"] return if value_type.nil? - case value_type.name + case value_type["name"] when "UInt32" validate_uint32(record, attribute, value) end Modified: test/apps/rails5/Gemfile.lock (+1 -1) =================================================================== --- test/apps/rails5/Gemfile.lock 2017-02-03 18:29:24 +0900 (8c77876) +++ test/apps/rails5/Gemfile.lock 2017-02-03 21:40:35 +0900 (3ac31d2) @@ -12,7 +12,7 @@ PATH specs: groonga-client-model (0.9.9) activemodel - groonga-client (>= 0.3.7) + groonga-client (>= 0.4.1) groonga-command-parser GEM -------------- next part -------------- HTML����������������������������...Download