Skip to content

Commit

Permalink
Fix arity bug in respond_to? method
Browse files Browse the repository at this point in the history
  • Loading branch information
ZJvandeWeg committed Oct 11, 2017
1 parent 5f940fb commit 02c54fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ that you can set version constraints properly.

#### [Unreleased](https://github.com/exAspArk/batch-loader/compare/v1.0.3...HEAD)

* WIP
* `Fixed`: Fix arity bug in `respond_to?`

#### [v1.0.3](https://github.com/exAspArk/batch-loader/compare/v1.0.2...v1.0.3) – 2017-09-18

Expand Down
4 changes: 2 additions & 2 deletions lib/batch_loader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ def batch(cache: true, &batch_block)
self
end

def respond_to?(method_name)
LEFT_INSTANCE_METHODS.include?(method_name) || method_missing(:respond_to?, method_name)
def respond_to?(method_name, include_private = false)
LEFT_INSTANCE_METHODS.include?(method_name) || method_missing(:respond_to?, method_name, include_private)
end

def inspect
Expand Down

0 comments on commit 02c54fe

Please sign in to comment.