lib/grape/validations/validators/all_or_none.rb in grape-0.14.0 vs lib/grape/validations/validators/all_or_none.rb in grape-0.15.0

- old
+ new

@@ -3,10 +3,10 @@ require 'grape/validations/validators/multiple_params_base' class AllOrNoneOfValidator < MultipleParamsBase def validate!(params) super if scope_requires_params && only_subset_present - fail Grape::Exceptions::Validation, params: all_keys, message_key: :all_or_none + fail Grape::Exceptions::Validation, params: all_keys, message: message(:all_or_none) end params end private