lib/grape/dsl/inside_route.rb in grape-1.0.2 vs lib/grape/dsl/inside_route.rb in grape-1.0.3

- old
+ new

@@ -62,10 +62,10 @@ # If it is not a Hash then it does not have children. # Find its value or set it to nil. has_alias = route_setting(:aliased_params) && route_setting(:aliased_params).find { |current| current[declared_param] } param_alias = has_alias[declared_param] if has_alias - next unless options[:include_missing] || passed_params.key?(declared_param) || param_alias + next unless options[:include_missing] || passed_params.key?(declared_param) || (param_alias && passed_params.key?(param_alias)) if param_alias memo[optioned_param_key(param_alias, options)] = passed_params[param_alias] else memo[optioned_param_key(declared_param, options)] = passed_params[declared_param]