8000 "respond_to?" With one parameter is deprecated · Issue #73 · erector/erector · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

"respond_to?" With one parameter is deprecated #73

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails 8FF3 .

Already on GitHub? Sign in to your account

Open
izzergh opened this issue Mar 5, 2020 · 1 comment
Open

"respond_to?" With one parameter is deprecated #73

izzergh opened this issue Mar 5, 2020 · 1 comment

Comments

@izzergh
Copy link
izzergh commented Mar 5, 2020

def respond_to?(name)
super || helpers.respond_to?(name)
end

 def respond_to?(name, include_private = false) 
   super || helpers.respond_to?(name, include_private) 
 end 

Avoids using deprecated syntax (you are supposed to be explicit now)

<your method call> uses the deprecated method signature, which takes one parameter

Not sure what you want the default to be, but not adding a default could be a breaking change for some applications.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@izzergh and others
0