Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Commit

Permalink
Support older versions of Ruby
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanoverna committed Jun 11, 2018
1 parent e8075ca commit 24ce99c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dato/repo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def initialize(client, type, schema)
min_arguments_count = [
link.href.scan(IDENTITY_REGEXP).size,
link.schema && link.method != :get ? 1 : 0
].sum
].reduce(0, :+)

args.size >= min_arguments_count or
raise ArgumentError.new(
Expand Down

0 comments on commit 24ce99c

Please sign in to comment.