Skip to content

Inconsistent :respond_to? on schedulings without playlist #23

@jaimeiniesta

Description

@jaimeiniesta

When a scheduling hasn't got a playlist, we get a NoMethodError when trying to access it.

So, I would expect to be returned false when I ask if this method is defined:

@scheduling.respond_to?(:playlist) # returns true
@scheduling.playlist               # raises NoMethodError

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions