Skip to content

"respond_to?" With one parameter is deprecated #73

@izzergh

Description

@izzergh

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions