Skip to content

Files/Items should report to respond_to? methods that they respond to #119

Open
@brandonc

Description

@brandonc

Otherwise this can lead to confusing behavior:

> item.id
> "12345"
> item.try(:id)
> nil
> item.respond_to?(:id)
> false

See https://robots.thoughtbot.com/always-define-respond-to-missing-when-overriding

Corrective PR: #118

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