Skip to content

Commit

Permalink
Fix typo for pagination method (#85)
Browse files Browse the repository at this point in the history
This commit keeps the original typo for backwards compatibility.
  • Loading branch information
coorasse committed Feb 16, 2024
1 parent 6eedcc8 commit 9ccd8c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hcloud/abstract_resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class << self
def bind_to(klass)
resource = self
%w[find find_by where all [] page limit per_page order
to_a count pagnation each].each do |method|
to_a count pagnation pagination each].each do |method|
klass.define_singleton_method(method) do |*args, &block|
resource.new(client: Client.connection).public_send(method, *args, &block)
end
Expand Down

0 comments on commit 9ccd8c1

Please sign in to comment.