lib/easy/jsonapi/utility.rb in easy-jsonapi-1.0.0 vs lib/easy/jsonapi/utility.rb in easy-jsonapi-1.0.1

- old
+ new

@@ -149,10 +149,10 @@ # @param hash [Hash] The hash being inspected # @param args [Array<Symbol | String>] The hash keys making up the path def all_hash_path?(hash, args) return false if (args.size.positive? && !hash.is_a?(Hash)) || hash.nil? return true if args.size.zero? && !hash.nil? - all_hash_path?(hash[args.first], args[1..]) + all_hash_path?(hash[args.first], args[1..-1]) end end end end