lib/grape/validations/validators/base.rb in grape-1.0.0 vs lib/grape/validations/validators/base.rb in grape-1.0.1

- old
+ new

@@ -37,10 +37,10 @@ def validate!(params) attributes = AttributesIterator.new(self, @scope, params) array_errors = [] attributes.each do |resource_params, attr_name| next unless @required || (resource_params.respond_to?(:key?) && resource_params.key?(attr_name)) - next unless @scope.meets_dependency?(resource_params) + next unless @scope.meets_dependency?(resource_params, params) begin validate_param!(attr_name, resource_params) rescue Grape::Exceptions::Validation => e # we collect errors inside array because